<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:13:00 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Git - api trace2</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Miscellaneous">
                                Miscellaneous                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="956f4361af1e70e8ae98254883056602a290d153d2b4e7a8d5eb58b2ccee1f05/e8" data-source="api-trace2" onmousemove="i18n(this)">api-trace2</span></h1> <div> <p><span data-i18n="1976e778df27e430cb3d46f43e25a35d9f2ecfdf074feb00fc3ac7e64d48936c/23" data-source="The Trace2 API can be used to print debug, performance, and telemetry information to stderr or a file. The Trace2 feature is inactive unless explicitly enabled by enabling one or more Trace2 Targets." onmousemove="i18n(this)">API Trace2 &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &vcy;&ycy;&vcy;&ocy;&dcy;&acy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy;&bcy; &ocy;&tcy;&lcy;&acy;&dcy;&kcy;&iecy;, &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&icy; &icy; &tcy;&iecy;&lcy;&iecy;&mcy;&iecy;&tcy;&rcy;&icy;&icy; &vcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &icy;&lcy;&icy; &vcy; &fcy;&acy;&jcy;&lcy;. &Fcy;&ucy;&ncy;&kcy;&tscy;&icy;&yacy; Trace2 &ncy;&iecy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&acy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&acy; &yacy;&vcy;&ncy;&ocy; &ncy;&iecy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&acy; &pcy;&ucy;&tcy;&iecy;&mcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy; &ocy;&dcy;&ncy;&ocy;&jcy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&khcy; &tscy;&iecy;&lcy;&iecy;&jcy; Trace2.</span></p> <p><span data-i18n="8d554485b0f0c271e9db5781261d6bcfc84b343e1de09f6fb126723d1ab9ecbf/71" data-source="The Trace2 API is intended to replace the existing (Trace1) &lt;code&gt;printf()&lt;/code&gt;-style tracing provided by the existing &lt;code&gt;GIT_TRACE&lt;/code&gt; and &lt;code&gt;GIT_TRACE_PERFORMANCE&lt;/code&gt; facilities. During initial implementation, Trace2 and Trace1 may operate in parallel." onmousemove="i18n(this)">API Trace2 &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &dcy;&lcy;&yacy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; &vcy; &scy;&tcy;&icy;&lcy;&iecy;  <code>printf()</code>  (Trace1), &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&jcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy;&icy; &scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&acy;&mcy;&icy;  <code>GIT_TRACE</code>  &icy;  <code>GIT_TRACE_PERFORMANCE</code> . &Vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &pcy;&iecy;&rcy;&vcy;&ocy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; Trace2 &icy; Trace1 &mcy;&ocy;&gcy;&ucy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy; &pcy;&acy;&rcy;&acy;&lcy;&lcy;&iecy;&lcy;&softcy;&ncy;&ocy;.</span></p> <p><span data-i18n="14e269eb7e9cb69b9079790256379214bacf2f0f2c00125ff732a69cdd2bd73a/ba" data-source="The Trace2 API defines a set of high-level messages with known fields, such as (&lt;code&gt;start&lt;/code&gt;: &lt;code&gt;argv&lt;/code&gt;) and (&lt;code&gt;exit&lt;/code&gt;: {&lt;code&gt;exit-code&lt;/code&gt;, &lt;code&gt;elapsed-time&lt;/code&gt;})." onmousemove="i18n(this)">API Trace2 &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &ncy;&acy;&bcy;&ocy;&rcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&jcy; &vcy;&ycy;&scy;&ocy;&kcy;&ocy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy; &scy; &icy;&zcy;&vcy;&iecy;&scy;&tcy;&ncy;&ycy;&mcy;&icy; &pcy;&ocy;&lcy;&yacy;&mcy;&icy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy; (  <code>start</code>  :  <code>argv</code>  ) &icy; (  <code>exit</code>  : {  <code>exit-code</code>  ,  <code>elapsed-time</code>  }).</span></p> <p><span data-i18n="b8da3e37708ca31cafd2850754a99a40a35584142eeb728fd845815cca259a29/5a" data-source="Trace2 instrumentation throughout the Git code base sends Trace2 messages to the enabled Trace2 Targets. Targets transform these messages content into purpose-specific formats and write events to their data streams. In this manner, the Trace2 API can drive many different types of analysis." onmousemove="i18n(this)">&Icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; Trace2 &pcy;&ocy; &vcy;&scy;&iecy;&jcy; &bcy;&acy;&zcy;&iecy; &kcy;&ocy;&dcy;&acy;  Git  &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; Trace2 &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ncy;&ycy;&mcy; &tscy;&iecy;&lcy;&yacy;&mcy; Trace2. &TScy;&iecy;&lcy;&icy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ucy;&yucy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ecy;&tcy;&icy;&khcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&jcy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ycy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &kcy;&ocy;&ncy;&kcy;&rcy;&iecy;&tcy;&ncy;&ocy;&jcy; &tscy;&iecy;&lcy;&icy;, &icy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &vcy; &scy;&vcy;&ocy;&icy; &pcy;&ocy;&tcy;&ocy;&kcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, API Trace2 &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&ncy;&ycy;&khcy; &tcy;&icy;&pcy;&ocy;&vcy; &acy;&ncy;&acy;&lcy;&icy;&zcy;&acy;.</span></p> <p><span data-i18n="5ca0036d7e8c5e21b61cb1c9cfd6ce32c19e33cf765d92721f3ea22562182424/b0" data-source="Targets are defined using a VTable allowing easy extension to other formats in the future. This might be used to define a binary format, for example." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; VTable, &chcy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy; &lcy;&iecy;&gcy;&kcy;&ocy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&yacy;&tcy;&softcy; &icy;&khcy; &dcy;&ocy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ocy;&vcy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &dcy;&lcy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ocy;&gcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;.</span></p> <p><span data-i18n="657d470ca2f9391792c8fa5feeab003c5c5f44a593a92f215d4788a2bc6fb34b/05" data-source="Trace2 is controlled using &lt;code&gt;trace2.*&lt;/code&gt; config values in the system and global config files and &lt;code&gt;GIT_TRACE2*&lt;/code&gt; environment variables. Trace2 does not read from repo local or worktree config files, nor does it respect &lt;code&gt;-c&lt;/code&gt; command line config settings." onmousemove="i18n(this)">Trace2 &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>trace2.*</code>  &vcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ycy;&khcy; &icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&acy;&khcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_TRACE2*</code> . Trace2 &ncy;&iecy; &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &icy;&lcy;&icy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &ncy;&iecy; &ucy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>-c</code> .</span></p> </div> <h2 class="text-body-emphasis"  id="_trace2_targets"><span data-i18n="de5c0232c227212cf1f953ccaa8a7c39088f0973d334c5c034a4219ab59d599b/72" data-source="Trace2 targets" onmousemove="i18n(this)">Trace2 targets</span></h2> <div> <p><span data-i18n="afba23adb8dcc38f51c313094824d1ba4c500d98bee35bd69371d391c17024e5/f0" data-source="Trace2 defines the following set of Trace2 Targets. Format details are given in a later section." onmousemove="i18n(this)">Trace2 &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&jcy; &ncy;&acy;&bcy;&ocy;&rcy; &tscy;&iecy;&lcy;&iecy;&jcy; Trace2. &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&ncy;&ycy; &vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&mcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;.</span></p> <div> <h3 class="text-body-emphasis"  id="_the_normal_format_target"><span data-i18n="739e086cb9383d063669b5d4c0544a90510c0868a80663977d8d906360802420/d3" data-source="The Normal Format Target" onmousemove="i18n(this)">&TScy;&iecy;&lcy;&softcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy;&gcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;</span></h3> <p><span data-i18n="6595b44f1efda82019ab59cbf9376ee5f4cc40844b99e401ae8b11dbc0ee90d5/e4" data-source="The normal format target is a traditional &lt;code&gt;printf()&lt;/code&gt; format and similar to the &lt;code&gt;GIT_TRACE&lt;/code&gt; format. This format is enabled with the &lt;code&gt;GIT_TRACE2&lt;/code&gt; environment variable or the &lt;code&gt;trace2.normalTarget&lt;/code&gt; system or global config setting." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&iecy;&vcy;&ycy;&mcy; &ncy;&ocy;&rcy;&mcy;&acy;&lcy;&softcy;&ncy;&ycy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ocy;&mcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &tcy;&rcy;&acy;&dcy;&icy;&tscy;&icy;&ocy;&ncy;&ncy;&ycy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;  <code>printf()</code> , &acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ycy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ucy;  <code>GIT_TRACE</code> . &Ecy;&tcy;&ocy;&tcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_TRACE2</code>  &icy;&lcy;&icy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &icy;&lcy;&icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>trace2.normalTarget</code> .</span></p> <p><span data-i18n="f85c1f8a053beb8c0b9b83be509bbc7d487cb835f85c837a96b8a34bcac56ea9/1a" data-source="For example" onmousemove="i18n(this)">For example</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2=~/log.normal</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git version</span>
git version 2.20.1.155.g426c96fcdb</pre> </div> </div> <p><span data-i18n="7175517a370b5cd2e664e3fd29c4ea9db5ce17058eb9772fe090a5485e49dad6/33" data-source="or" onmousemove="i18n(this)">or</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">git config --global trace2.normalTarget ~/log.normal</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git version</span>
git version 2.20.1.155.g426c96fcdb</pre> </div> </div> <p><span data-i18n="ba75b4423591cddc3e010c8473a5e52aaf97d805485709b9c305199759141ad4/45" data-source="yields" onmousemove="i18n(this)">yields</span></p> <div> <div> <pre class="hljs language-makefile">$ cat ~/log.normal
<span class="hljs-section">12:28:42.620009 common-main.c:38                  version 2.20.1.155.g426c96fcdb</span>
<span class="hljs-section">12:28:42.620989 common-main.c:39                  start git version</span>
<span class="hljs-section">12:28:42.621101 git.c:432                         cmd_name version (version)</span>
<span class="hljs-section">12:28:42.621215 git.c:662                         exit elapsed:0.001227 code:0</span>
<span class="hljs-section">12:28:42.621250 trace2/tr2_tgt_normal.c:124       atexit elapsed:0.001265 code:0</span></pre> </div> </div> </div> <div> <h3 class="text-body-emphasis"  id="_the_performance_format_target"><span data-i18n="03f6fc9f0dd9e809ca1f505ac17b81c0a5c28861169b0bc3b6d08cc1934ff7de/f4" data-source="The Performance Format Target" onmousemove="i18n(this)">&TScy;&iecy;&lcy;&softcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&icy;</span></h3> <p><span data-i18n="6784b8518cfc3ed0609d8fd5717ddee2a17a4d4b14574d2d8529110c53236783/d5" data-source="The performance format target (PERF) is a column-based format to replace &lt;code&gt;GIT_TRACE_PERFORMANCE&lt;/code&gt; and is suitable for development and testing, possibly to complement tools like &lt;code&gt;gprof&lt;/code&gt;. This format is enabled with the &lt;code&gt;GIT_TRACE2_PERF&lt;/code&gt; environment variable or the &lt;code&gt;trace2.perfTarget&lt;/code&gt; system or global config setting." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&iecy;&vcy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&icy; (PERF) &mdash; &ecy;&tcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &scy;&tcy;&ocy;&lcy;&bcy;&tscy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;  <code>GIT_TRACE_PERFORMANCE</code>  &icy; &pcy;&ocy;&dcy;&khcy;&ocy;&dcy;&icy;&tcy; &dcy;&lcy;&yacy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy; &icy; &tcy;&iecy;&scy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;, &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy; &tcy;&acy;&kcy;&icy;&mcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;, &kcy;&acy;&kcy;  <code>gprof</code> . &Ecy;&tcy;&ocy;&tcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_TRACE2_PERF</code>  &icy;&lcy;&icy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &icy;&lcy;&icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>trace2.perfTarget</code> .</span></p> <p><span data-i18n="f85c1f8a053beb8c0b9b83be509bbc7d487cb835f85c837a96b8a34bcac56ea9/1a" data-source="For example" onmousemove="i18n(this)">For example</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2_PERF=~/log.perf</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git version</span>
git version 2.20.1.155.g426c96fcdb</pre> </div> </div> <p><span data-i18n="7175517a370b5cd2e664e3fd29c4ea9db5ce17058eb9772fe090a5485e49dad6/33" data-source="or" onmousemove="i18n(this)">or</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">git config --global trace2.perfTarget ~/log.perf</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git version</span>
git version 2.20.1.155.g426c96fcdb</pre> </div> </div> <p><span data-i18n="ba75b4423591cddc3e010c8473a5e52aaf97d805485709b9c305199759141ad4/45" data-source="yields" onmousemove="i18n(this)">yields</span></p> <div> <div> <pre class="hljs language-makefile">$ cat ~/log.perf
<span class="hljs-section">12:28:42.620675 common-main.c:38                  | d0 | main                     | version      |     |           |           |            | 2.20.1.155.g426c96fcdb</span>
<span class="hljs-section">12:28:42.621001 common-main.c:39                  | d0 | main                     | start        |     |  0.001173 |           |            | git version</span>
<span class="hljs-section">12:28:42.621111 git.c:432                         | d0 | main                     | cmd_name     |     |           |           |            | version (version)</span>
<span class="hljs-section">12:28:42.621225 git.c:662                         | d0 | main                     | exit         |     |  0.001227 |           |            | code:0</span>
<span class="hljs-section">12:28:42.621259 trace2/tr2_tgt_perf.c:211         | d0 | main                     | atexit       |     |  0.001265 |           |            | code:0</span></pre> </div> </div> </div> <div> <h3 class="text-body-emphasis"  id="_the_event_format_target"><span data-i18n="7b0a8ac344a0d2eccb9b57a9b8277281526178e434c151aa3112490201b0adf4/84" data-source="The Event Format Target" onmousemove="i18n(this)">&TScy;&iecy;&lcy;&iecy;&vcy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &mcy;&iecy;&rcy;&ocy;&pcy;&rcy;&icy;&yacy;&tcy;&icy;&yacy;</span></h3> <p><span data-i18n="5aaf46227a9d03389ab865b8d2129e677567f983b6c04e31647ba24a6793e873/7b" data-source="The event format target is a JSON-based format of event data suitable for telemetry analysis. This format is enabled with the &lt;code&gt;GIT_TRACE2_EVENT&lt;/code&gt; environment variable or the &lt;code&gt;trace2.eventTarget&lt;/code&gt; system or global config setting." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&iecy;&vcy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy; &mdash; &ecy;&tcy;&ocy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; JSON, &pcy;&ocy;&dcy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&jcy; &dcy;&lcy;&yacy; &acy;&ncy;&acy;&lcy;&icy;&zcy;&acy; &tcy;&iecy;&lcy;&iecy;&mcy;&iecy;&tcy;&rcy;&icy;&icy;. &Ecy;&tcy;&ocy;&tcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_TRACE2_EVENT</code> , &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &icy;&lcy;&icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>trace2.eventTarget</code> .</span></p> <p><span data-i18n="f85c1f8a053beb8c0b9b83be509bbc7d487cb835f85c837a96b8a34bcac56ea9/1a" data-source="For example" onmousemove="i18n(this)">For example</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2_EVENT=~/log.event</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git version</span>
git version 2.20.1.155.g426c96fcdb</pre> </div> </div> <p><span data-i18n="7175517a370b5cd2e664e3fd29c4ea9db5ce17058eb9772fe090a5485e49dad6/33" data-source="or" onmousemove="i18n(this)">or</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash">git config --global trace2.eventTarget ~/log.event</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git version</span>
git version 2.20.1.155.g426c96fcdb</pre> </div> </div> <p><span data-i18n="ba75b4423591cddc3e010c8473a5e52aaf97d805485709b9c305199759141ad4/45" data-source="yields" onmousemove="i18n(this)">yields</span></p> <div> <div> <pre class="hljs language-bash">$ <span class="hljs-built_in">cat</span> ~/log.event
{<span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;version&quot;</span>,<span class="hljs-string">&quot;sid&quot;</span>:<span class="hljs-string">&quot;20190408T191610.507018Z-H9b68c35f-P000059a8&quot;</span>,<span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;main&quot;</span>,<span class="hljs-string">&quot;time&quot;</span>:<span class="hljs-string">&quot;2019-01-16T17:28:42.620713Z&quot;</span>,<span class="hljs-string">&quot;file&quot;</span>:<span class="hljs-string">&quot;common-main.c&quot;</span>,<span class="hljs-string">&quot;line&quot;</span>:38,<span class="hljs-string">&quot;evt&quot;</span>:<span class="hljs-string">&quot;3&quot;</span>,<span class="hljs-string">&quot;exe&quot;</span>:<span class="hljs-string">&quot;2.20.1.155.g426c96fcdb&quot;</span>}
{<span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;start&quot;</span>,<span class="hljs-string">&quot;sid&quot;</span>:<span class="hljs-string">&quot;20190408T191610.507018Z-H9b68c35f-P000059a8&quot;</span>,<span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;main&quot;</span>,<span class="hljs-string">&quot;time&quot;</span>:<span class="hljs-string">&quot;2019-01-16T17:28:42.621027Z&quot;</span>,<span class="hljs-string">&quot;file&quot;</span>:<span class="hljs-string">&quot;common-main.c&quot;</span>,<span class="hljs-string">&quot;line&quot;</span>:39,<span class="hljs-string">&quot;t_abs&quot;</span>:0.001173,<span class="hljs-string">&quot;argv&quot;</span>:[<span class="hljs-string">&quot;git&quot;</span>,<span class="hljs-string">&quot;version&quot;</span>]}
{<span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;cmd_name&quot;</span>,<span class="hljs-string">&quot;sid&quot;</span>:<span class="hljs-string">&quot;20190408T191610.507018Z-H9b68c35f-P000059a8&quot;</span>,<span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;main&quot;</span>,<span class="hljs-string">&quot;time&quot;</span>:<span class="hljs-string">&quot;2019-01-16T17:28:42.621122Z&quot;</span>,<span class="hljs-string">&quot;file&quot;</span>:<span class="hljs-string">&quot;git.c&quot;</span>,<span class="hljs-string">&quot;line&quot;</span>:432,<span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;version&quot;</span>,<span class="hljs-string">&quot;hierarchy&quot;</span>:<span class="hljs-string">&quot;version&quot;</span>}
{<span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;exit&quot;</span>,<span class="hljs-string">&quot;sid&quot;</span>:<span class="hljs-string">&quot;20190408T191610.507018Z-H9b68c35f-P000059a8&quot;</span>,<span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;main&quot;</span>,<span class="hljs-string">&quot;time&quot;</span>:<span class="hljs-string">&quot;2019-01-16T17:28:42.621236Z&quot;</span>,<span class="hljs-string">&quot;file&quot;</span>:<span class="hljs-string">&quot;git.c&quot;</span>,<span class="hljs-string">&quot;line&quot;</span>:662,<span class="hljs-string">&quot;t_abs&quot;</span>:0.001227,<span class="hljs-string">&quot;code&quot;</span>:0}
{<span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;atexit&quot;</span>,<span class="hljs-string">&quot;sid&quot;</span>:<span class="hljs-string">&quot;20190408T191610.507018Z-H9b68c35f-P000059a8&quot;</span>,<span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;main&quot;</span>,<span class="hljs-string">&quot;time&quot;</span>:<span class="hljs-string">&quot;2019-01-16T17:28:42.621268Z&quot;</span>,<span class="hljs-string">&quot;file&quot;</span>:<span class="hljs-string">&quot;trace2/tr2_tgt_event.c&quot;</span>,<span class="hljs-string">&quot;line&quot;</span>:163,<span class="hljs-string">&quot;t_abs&quot;</span>:0.001265,<span class="hljs-string">&quot;code&quot;</span>:0}</pre> </div> </div> </div> <div> <h3 class="text-body-emphasis"  id="_enabling_a_target"><span data-i18n="92f8a4a81d30ff28451acfb5c95a04706860570e46ddd8f0cb81412b14d32847/57" data-source="Enabling a Target" onmousemove="i18n(this)">&Vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy; &tscy;&iecy;&lcy;&icy;</span></h3> <p><span data-i18n="93391dc2342df630aeb99cf2eb66ea5e93a661d85d4ee54843300e9fad2d662a/21" data-source="To enable a target, set the corresponding environment variable or system or global config value to one of the following:" onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &tscy;&iecy;&lcy;&softcy;, &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &dcy;&lcy;&yacy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy; &icy;&lcy;&icy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &icy;&lcy;&icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ocy;&dcy;&ncy;&ocy; &icy;&zcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy;:</span></p> <div> <div> <div> <ul> <li> <p><span data-i18n="a707f587dc9bd5c8fa12e30a6ab56dc1e541d231146aa5d73060f9e7815b7239/5f" data-source="&lt;code&gt;0&lt;/code&gt; or &lt;code&gt;false&lt;/code&gt; - Disables the target." onmousemove="i18n(this)"><code>0</code>  &icy;&lcy;&icy;  <code>false</code>  &mdash; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &tscy;&iecy;&lcy;&softcy;.</span></p> </li> <li> <p><span data-i18n="a6444360f100b5123196ea2dbf2ae7d333a0927008182f74fdd3d9e0bf753c64/3f" data-source="&lt;code&gt;1&lt;/code&gt; or &lt;code&gt;true&lt;/code&gt; - Writes to &lt;code&gt;STDERR&lt;/code&gt;." onmousemove="i18n(this)"><code>1</code>  &icy;&lcy;&icy;  <code>true</code>  &mdash; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &vcy;  <code>STDERR</code> .</span></p> </li> <li> <p><span data-i18n="aabb72b8969651b37d96972716e22e4ebca5c232f8e3935e860abb92b43e15b6/b1" data-source="&lt;code&gt;[2-9]&lt;/code&gt; - Writes to the already opened file descriptor." onmousemove="i18n(this)"><code>[2-9]</code>  &mdash; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &vcy; &ucy;&zhcy;&iecy; &ocy;&tcy;&kcy;&rcy;&ycy;&tcy;&ycy;&jcy; &dcy;&iecy;&scy;&kcy;&rcy;&icy;&pcy;&tcy;&ocy;&rcy; &fcy;&acy;&jcy;&lcy;&acy;.</span></p> </li> <li> <p><span data-i18n="44c6785100c079586152339a9ddf228e93b75a3b5bd455ee3b1a73fcda56636e/1b" data-source="&lt;code&gt;&amp;lt;absolute-pathname&amp;gt;&lt;/code&gt; - Writes to the file in append mode. If the target already exists and is a directory, the traces will be written to files (one per process) underneath the given directory." onmousemove="i18n(this)"><code>&lt;absolute-pathname&gt;</code>  &mdash; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &vcy; &fcy;&acy;&jcy;&lcy; &vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;. &IEcy;&scy;&lcy;&icy; &tscy;&iecy;&lcy;&softcy; &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &icy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&mcy;, &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ycy; &vcy; &fcy;&acy;&jcy;&lcy;&ycy; (&pcy;&ocy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; &ncy;&acy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;) &pcy;&ocy;&dcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ocy;&mcy;.</span></p> </li> <li> <p><span data-i18n="73c80c630725511a7d40b3e21ca3291c3b830b48a3713b0b274d520fa5818d66/b4" data-source="&lt;code&gt;af_unix:[&amp;lt;socket_type&amp;gt;:]&amp;lt;absolute-pathname&amp;gt;&lt;/code&gt; - Write to a Unix DomainSocket (on platforms that support them). Socket type can be either &lt;code&gt;stream&lt;/code&gt; or &lt;code&gt;dgram&lt;/code&gt;; if omitted Git will try both." onmousemove="i18n(this)"><code>af_unix:[&lt;socket_type&gt;:]&lt;absolute-pathname&gt;</code>  &mdash; &zcy;&acy;&pcy;&icy;&scy;&softcy; &vcy; &dcy;&ocy;&mcy;&iecy;&ncy;&ncy;&ycy;&jcy; &scy;&ocy;&kcy;&iecy;&tcy; Unix (&ncy;&acy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&acy;&khcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &icy;&khcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy;). &Tcy;&icy;&pcy; &scy;&ocy;&kcy;&iecy;&tcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy;  <code>stream</code>  &icy;&lcy;&icy;  <code>dgram</code> ; &iecy;&scy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &ocy;&pcy;&ucy;&shchcy;&iecy;&ncy;,  Git  &pcy;&ocy;&pcy;&rcy;&ocy;&bcy;&ucy;&iecy;&tcy; &ocy;&bcy;&acy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy;&acy;.</span></p> </li> </ul> </div> </div> </div> <p><span data-i18n="1815dc0622ae37c71ba1cf80dd4d7f49275c737a6253159417919792d04ba221/8c" data-source="When trace files are written to a target directory, they will be named according to the last component of the SID (optionally followed by a counter to avoid filename collisions)." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &fcy;&acy;&jcy;&lcy;&ycy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy; &tscy;&iecy;&lcy;&iecy;&vcy;&ocy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;, &ocy;&ncy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &ncy;&acy;&zcy;&vcy;&acy;&ncy;&ycy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&mcy; &kcy;&ocy;&mcy;&pcy;&ocy;&ncy;&iecy;&ncy;&tcy;&ocy;&mcy; SID (&zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &ncy;&iecy;&ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &icy;&zcy;&bcy;&iecy;&zhcy;&acy;&tcy;&softcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy; &icy;&mcy;&iecy;&ncy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;).</span></p> </div> </div> <h2 class="text-body-emphasis"  id="_trace2_api"><span data-i18n="0f4b246ffcf8c30c6c0a586d025518c157a0a31fbf5884f3cca5023357425515/da" data-source="Trace2 api" onmousemove="i18n(this)">Trace2 api</span></h2> <div> <p><span data-i18n="31f7690bf4f3fbdee8f647272485b7146da8e802391cfe88f377962f64474a7f/bf" data-source="The Trace2 public API is defined and documented in &lt;code&gt;trace2.h&lt;/code&gt;; refer to it for more information. All public functions and macros are prefixed with &lt;code&gt;trace2_&lt;/code&gt; and are implemented in &lt;code&gt;trace2.c&lt;/code&gt;." onmousemove="i18n(this)">API Trace2  public  &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy; &icy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy; &vcy;  <code>trace2.h</code> ; &ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy;&scy;&softcy; &kcy; &ncy;&iecy;&mcy;&ucy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;. &Vcy;&scy;&iecy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &icy; &mcy;&acy;&kcy;&rcy;&ocy;&scy;&ycy;  public  &icy;&mcy;&iecy;&yucy;&tcy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;  <code>trace2_</code>  &icy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&ocy;&vcy;&acy;&ncy;&ycy; &vcy;  <code>trace2.c</code> .</span></p> <p><span data-i18n="884470c6f004fb0a72776e4b2968309dd93d6868a38b5dbf5671a6e2ef7bee9b/ad" data-source="There are no public Trace2 data structures." onmousemove="i18n(this)">&Scy;&tcy;&rcy;&ucy;&kcy;&tcy;&ucy;&rcy;&ycy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  public  Trace2 &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy;.</span></p> <p><span data-i18n="ac6e66349207fe51a07252e28ed88d002f103e68cc9f4d21960c3c47b54b7173/cc" data-source="The Trace2 code also defines a set of private functions and data types in the &lt;code&gt;trace2/&lt;/code&gt; directory. These symbols are prefixed with &lt;code&gt;tr2_&lt;/code&gt; and should only be used by functions in &lt;code&gt;trace2.c&lt;/code&gt; (or other private source files in &lt;code&gt;trace2/&lt;/code&gt;)." onmousemove="i18n(this)">&Kcy;&ocy;&dcy; Trace2 &tcy;&acy;&kcy;&zhcy;&iecy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &ncy;&acy;&bcy;&ocy;&rcy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&jcy; &icy; &tcy;&icy;&pcy;&ocy;&vcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  private  &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;  <code>trace2/</code> . &Ecy;&tcy;&icy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ycy; &icy;&mcy;&iecy;&yucy;&tcy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;  <code>tr2_</code>  &icy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&yacy;&mcy;&icy; &vcy;  <code>trace2.c</code>  (&icy;&lcy;&icy; &dcy;&rcy;&ucy;&gcy;&icy;&mcy;&icy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&mcy;&icy; &fcy;&acy;&jcy;&lcy;&acy;&mcy;&icy;  private  &vcy;  <code>trace2/</code> ).</span></p> <div> <h3 class="text-body-emphasis"  id="_conventions_for_public_functions_and_macros"><span data-i18n="9bfd6a1d177b8db56fdd65cc79b888c7cac3e7d4255410df1fb8379a49663730/ec" data-source="Conventions for Public Functions and Macros" onmousemove="i18n(this)">&Scy;&ocy;&gcy;&lcy;&acy;&shcy;&iecy;&ncy;&icy;&yacy; &ocy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&yacy;&khcy; &icy; &mcy;&acy;&kcy;&rcy;&ocy;&scy;&acy;&khcy;  Public</span></h3> <p><span data-i18n="a063b35eb34b9919349f0fc5253ae80e1317f799b8e41ec216b92abe237e8a03/cc" data-source="Some functions have a &lt;code&gt;_fl()&lt;/code&gt; suffix to indicate that they take &lt;code&gt;file&lt;/code&gt; and &lt;code&gt;line-number&lt;/code&gt; arguments." onmousemove="i18n(this)">&Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &icy;&mcy;&iecy;&yucy;&tcy; &scy;&ucy;&fcy;&fcy;&icy;&kcy;&scy;  <code>_fl()</code> , &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy;, &chcy;&tcy;&ocy; &ocy;&ncy;&icy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&tcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy;  <code>file</code>  &icy;  <code>line-number</code> .</span></p> <p><span data-i18n="792b3854c3d5916945c4df101bd90e5d09eeae844941a254d0660c7ccffc19ab/a5" data-source="Some functions have a &lt;code&gt;_va_fl()&lt;/code&gt; suffix to indicate that they also take a &lt;code&gt;va_list&lt;/code&gt; argument." onmousemove="i18n(this)">&Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &icy;&mcy;&iecy;&yucy;&tcy; &scy;&ucy;&fcy;&fcy;&icy;&kcy;&scy;  <code>_va_fl()</code> , &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy; &ncy;&acy; &tcy;&ocy;, &chcy;&tcy;&ocy; &ocy;&ncy;&icy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&tcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;  <code>va_list</code> .</span></p> <p><span data-i18n="e6b8a10c16348391e1c672412987cebd6aa977ae46daddc4d3baa3f6fb8eeaa1/47" data-source="Some functions have a &lt;code&gt;_printf_fl()&lt;/code&gt; suffix to indicate that they also take a &lt;code&gt;printf()&lt;/code&gt; style format with a variable number of arguments." onmousemove="i18n(this)">&Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &icy;&mcy;&iecy;&yucy;&tcy; &scy;&ucy;&fcy;&fcy;&icy;&kcy;&scy;  <code>_printf_fl()</code> , &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy; &ncy;&acy; &tcy;&ocy;, &chcy;&tcy;&ocy; &ocy;&ncy;&icy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&tcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; &scy;&tcy;&icy;&lcy;&yacy;  <code>printf()</code>  &scy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&mcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy;&mcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;.</span></p> <p><span data-i18n="367561be680d59158315d75600c0bd4fa29e485dbebb2ff7d7bbe46a607c824c/d3" data-source="CPP wrapper macros are defined to hide most of these details." onmousemove="i18n(this)">&Mcy;&acy;&kcy;&rcy;&ocy;&scy;&ycy;-&ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy; CPP &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ycy; &tcy;&acy;&kcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&kcy;&rcy;&ycy;&tcy;&softcy; &bcy;&ocy;&lcy;&softcy;&shcy;&ucy;&yucy; &chcy;&acy;&scy;&tcy;&softcy; &ecy;&tcy;&icy;&khcy; &dcy;&iecy;&tcy;&acy;&lcy;&iecy;&jcy;.</span></p> </div> </div> <h2 class="text-body-emphasis"  id="_trace2_target_formats"><span data-i18n="145104c13e5a7f3f8a31605e2202e49614469529fa2d9f3a7ac3ec0db28234d9/f2" data-source="Trace2 target formats" onmousemove="i18n(this)">&TScy;&iecy;&lcy;&iecy;&vcy;&ycy;&iecy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&ycy; Trace2</span></h2> <div> <div> <h3 class="text-body-emphasis"  id="_normal_format"><span data-i18n="ab6fa53cefd7805c38238b4f15f4c7fcdeb6cd9bedf9d1ceb0f5f6aa2811509a/fb" data-source="NORMAL Format" onmousemove="i18n(this)">NORMAL Format</span></h3> <p><span data-i18n="72534c9a4db5c7ae38457d13649f1a5a85f061b648958e19b39c3e4dd6520b13/f8" data-source="Events are written as lines of the form:" onmousemove="i18n(this)">&Scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&mcy;&icy; &vcy;&icy;&dcy;&acy;:</span></p> <div> <div> <pre class="hljs language-xml">[<span class="hljs-tag">&lt;<span class="hljs-name">time</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">filename</span>&gt;</span>:<span class="hljs-tag">&lt;<span class="hljs-name">line</span>&gt;</span> SP+] <span class="hljs-tag">&lt;<span class="hljs-name">event-name</span>&gt;</span> [[SP] <span class="hljs-tag">&lt;<span class="hljs-name">event-message</span>&gt;</span>] LF</pre> </div> </div> <div> <dl> <dt id="Documentation/technical/api-trace2.txt-codeltevent-namegtcode"> <code>&lt;event-name&gt;</code> </dt> <dd> <p><span data-i18n="08ff80e7cd03b677a1296e0bb3bf07bbf4693bd583008a9a56586e64e3960cc5/19" data-source="is the event name." onmousemove="i18n(this)">&ecy;&tcy;&ocy; &ncy;&acy;&zcy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeltevent-messagegtcode"> <code>&lt;event-message&gt;</code> </dt> <dd> <p><span data-i18n="dba5d3b44259bfc533c01492d5197a868830afc12ce8f354293d1c5135086a57/73" data-source="is a free-form &lt;code&gt;printf()&lt;/code&gt; message intended for human consumption." onmousemove="i18n(this)">&pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;  <code>printf()</code>  &vcy; &scy;&vcy;&ocy;&bcy;&ocy;&dcy;&ncy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&iecy;, &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ncy;&ocy;&iecy; &dcy;&lcy;&yacy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&lcy;&iecy;&ncy;&icy;&yacy; &chcy;&iecy;&lcy;&ocy;&vcy;&iecy;&kcy;&ocy;&mcy;.</span></p> <p><span data-i18n="b3ba3f296bdd9aba68275ab43e9516b42a9cd8bda6a3f2cdc042c5bd68a51260/ab" data-source="Note that this may contain embedded LF or CRLF characters that are not escaped, so the event may spill across multiple lines." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &ocy;&ncy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy;&softcy; &vcy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&ycy; LF &icy;&lcy;&icy; CRLF, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy; &ecy;&kcy;&rcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ycy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &rcy;&acy;&scy;&pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy; &ncy;&acy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy;.</span></p> </dd> </dl> </div> <p><span data-i18n="2e1dc2b6675670d661fef4f1881ff392593a2e492578899cbe53b42e7cd64fe4/73" data-source="If &lt;code&gt;GIT_TRACE2_BRIEF&lt;/code&gt; or &lt;code&gt;trace2.normalBrief&lt;/code&gt; is true, the &lt;code&gt;time&lt;/code&gt;, &lt;code&gt;filename&lt;/code&gt;, and &lt;code&gt;line&lt;/code&gt; fields are omitted." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy;  <code>GIT_TRACE2_BRIEF</code>  &icy;&lcy;&icy;  <code>trace2.normalBrief</code>  &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; true, &pcy;&ocy;&lcy;&yacy;  <code>time</code> ,  <code>filename</code>  &icy;  <code>line</code>  &ocy;&pcy;&ucy;&scy;&kcy;&acy;&yucy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="b0f4797a8615727c1c709eb49ebbb738c32b7b2063fae878674bc72341df27ad/63" data-source="This target is intended to be more of a summary (like GIT_TRACE) and less detailed than the other targets. It ignores thread, region, and data messages, for example." onmousemove="i18n(this)">&Ecy;&tcy;&acy; &tscy;&iecy;&lcy;&softcy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &bcy;&ycy;&tcy;&softcy; &scy;&kcy;&ocy;&rcy;&iecy;&iecy; &scy;&vcy;&ocy;&dcy;&ncy;&ocy;&jcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, GIT_TRACE) &icy; &mcy;&iecy;&ncy;&iecy;&iecy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&jcy;, &chcy;&iecy;&mcy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &tscy;&iecy;&lcy;&icy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &ocy;&ncy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &pcy;&ocy;&tcy;&ocy;&kcy;, &rcy;&iecy;&gcy;&icy;&ocy;&ncy; &icy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &scy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_perf_format"><span data-i18n="776506070fcfca2b6dd7709d581836e5170257765686cc811a585fd2005daa11/ee" data-source="PERF Format" onmousemove="i18n(this)">PERF Format</span></h3> <p><span data-i18n="72534c9a4db5c7ae38457d13649f1a5a85f061b648958e19b39c3e4dd6520b13/f8" data-source="Events are written as lines of the form:" onmousemove="i18n(this)">&Scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;&mcy;&icy; &vcy;&icy;&dcy;&acy;:</span></p> <div> <div> <pre class="hljs language-xml">[<span class="hljs-tag">&lt;<span class="hljs-name">time</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">filename</span>&gt;</span>:<span class="hljs-tag">&lt;<span class="hljs-name">line</span>&gt;</span> SP+
    BAR SP] d<span class="hljs-tag">&lt;<span class="hljs-name">depth</span>&gt;</span> SP
    BAR SP <span class="hljs-tag">&lt;<span class="hljs-name">thread-name</span>&gt;</span> SP+
    BAR SP <span class="hljs-tag">&lt;<span class="hljs-name">event-name</span>&gt;</span> SP+
    BAR SP [r<span class="hljs-tag">&lt;<span class="hljs-name">repo-id</span>&gt;</span>] SP+
    BAR SP [<span class="hljs-tag">&lt;<span class="hljs-name">t_abs</span>&gt;</span>] SP+
    BAR SP [<span class="hljs-tag">&lt;<span class="hljs-name">t_rel</span>&gt;</span>] SP+
    BAR SP [<span class="hljs-tag">&lt;<span class="hljs-name">category</span>&gt;</span>] SP+
    BAR SP DOTS* <span class="hljs-tag">&lt;<span class="hljs-name">perf-event-message</span>&gt;</span>
    LF</pre> </div> </div> <div> <dl> <dt id="Documentation/technical/api-trace2.txt-codeltdepthgtcode"> <code>&lt;depth&gt;</code> </dt> <dd> <p><span data-i18n="ac5d43a62d27b6477e36069ab150ad0f237daad048c12c8243d4ecc8425ff838/23" data-source="is the git process depth. This is the number of parent git processes. A top-level git command has depth value &amp;quot;d0&amp;quot;. A child of it has depth value &amp;quot;d1&amp;quot;. A second level child has depth value &amp;quot;d2&amp;quot; and so on." onmousemove="i18n(this)">&mdash; &ecy;&tcy;&ocy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&acy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;  git . &Ecy;&tcy;&ocy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&khcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&vcy;  git . &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  git  &vcy;&iecy;&rcy;&khcy;&ncy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy; &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ycy;  &quot;d0&quot; . &Dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy; &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ycy;  &quot;d1&quot; . &Dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy; &vcy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy; &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ycy;  &quot;d2&quot;  &icy; &tcy;&acy;&kcy; &dcy;&acy;&lcy;&iecy;&iecy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeltthread-namegtcode"> <code>&lt;thread-name&gt;</code> </dt> <dd> <p><span data-i18n="d8482a9ca0305eda6c3919ac9a4be42b6d24399058453513afc500b519e10abc/a8" data-source="is a unique name for the thread. The primary thread is called &amp;quot;main&amp;quot;. Other thread names are of the form &amp;quot;th%d:%s&amp;quot; and include a unique number and the name of the thread-proc." onmousemove="i18n(this)">&mdash; &ucy;&ncy;&icy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;. &Ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &ncy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  &quot;main&quot; . &Dcy;&rcy;&ucy;&gcy;&icy;&iecy; &icy;&mcy;&iecy;&ncy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&vcy; &icy;&mcy;&iecy;&yucy;&tcy; &vcy;&icy;&dcy;  &quot;th%d:%s&quot;  &icy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yucy;&tcy; &ucy;&ncy;&icy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy; &icy; &icy;&mcy;&yacy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeltevent-namegtcode-1"> <code>&lt;event-name&gt;</code> </dt> <dd> <p><span data-i18n="08ff80e7cd03b677a1296e0bb3bf07bbf4693bd583008a9a56586e64e3960cc5/19" data-source="is the event name." onmousemove="i18n(this)">&ecy;&tcy;&ocy; &ncy;&acy;&zcy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeltrepo-idgtcode"> <code>&lt;repo-id&gt;</code> </dt> <dd> <p><span data-i18n="44ad8a0b7a07c45541db5ce071055eb7c3f556dbc11172937d547389ddd21870/ba" data-source="when present, is a number indicating the repository in use. A &lt;code&gt;def_repo&lt;/code&gt; event is emitted when a repository is opened. This defines the repo-id and associated worktree. Subsequent repo-specific events will reference this repo-id." onmousemove="i18n(this)">&iecy;&scy;&lcy;&icy; &ocy;&ncy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &ecy;&tcy;&ocy; &chcy;&icy;&scy;&lcy;&ocy;, &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&iecy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;. &Scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;  <code>def_repo</code>  &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &ocy;&tcy;&kcy;&rcy;&ycy;&tcy;&icy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;. &Ecy;&tcy;&ocy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &rcy;&iecy;&pcy;&ocy; &icy; &scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ocy;&iecy; &scy; &ncy;&icy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;. &Pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &rcy;&iecy;&pcy;&ocy;, &bcy;&ucy;&dcy;&ucy;&tcy; &scy;&scy;&ycy;&lcy;&acy;&tcy;&softcy;&scy;&yacy; &ncy;&acy; &ecy;&tcy;&ocy;&tcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &rcy;&iecy;&pcy;&ocy;.</span></p> <p><span data-i18n="35019a1cc350b458b15bc77c5d76ff48c471d733c6864c79027efe9d6be59777/86" data-source="Currently, this is always &amp;quot;r1&amp;quot; for the main repository. This field is in anticipation of in-proc submodules in the future." onmousemove="i18n(this)">&Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &dcy;&lcy;&yacy; &ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &ecy;&tcy;&ocy; &vcy;&scy;&iecy;&gcy;&dcy;&acy;  &quot;r1&quot; . &Ecy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &vcy; &ocy;&zhcy;&icy;&dcy;&acy;&ncy;&icy;&icy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&iecy;&jcy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codelttabsgtcode"> <code>&lt;t_abs&gt;</code> </dt> <dd> <p><span data-i18n="5c2b4aa39c2a5699c021b285831cc6a5a95032cf85838b7c802d08ac6a32a6da/0e" data-source="when present, is the absolute time in seconds since the program started." onmousemove="i18n(this)">&iecy;&scy;&lcy;&icy; &ocy;&ncy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &ecy;&tcy;&ocy; &acy;&bcy;&scy;&ocy;&lcy;&yucy;&tcy;&ncy;&ocy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&acy;&khcy; &scy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&ycy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codelttrelgtcode"> <code>&lt;t_rel&gt;</code> </dt> <dd> <p><span data-i18n="649e974dd7eaf6fcc0143fa187390ab7dd341cdf4a96501c8adbfb36dc436146/b3" data-source="when present, is time in seconds relative to the start of the current region. For a thread-exit event, it is the elapsed time of the thread." onmousemove="i18n(this)">&iecy;&scy;&lcy;&icy; &ocy;&ncy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &ecy;&tcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&acy;&khcy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &ncy;&acy;&chcy;&acy;&lcy;&acy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&acy;. &Dcy;&lcy;&yacy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &icy;&zcy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy; &ecy;&tcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy;, &pcy;&rcy;&ocy;&shcy;&iecy;&dcy;&shcy;&iecy;&iecy; &vcy; &pcy;&ocy;&tcy;&ocy;&kcy;&iecy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeltcategorygtcode"> <code>&lt;category&gt;</code> </dt> <dd> <p><span data-i18n="a0eacf67e3c7fc0c5c6b561275ea40a4ea045093b599f970e94a811a7c62a92e/87" data-source="is present on region and data events and is used to indicate a broad category, such as &amp;quot;index&amp;quot; or &amp;quot;status&amp;quot;." onmousemove="i18n(this)">&pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &vcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;&khcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&acy; &icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &ocy;&bcy;&ocy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &shcy;&icy;&rcy;&ocy;&kcy;&ocy;&jcy; &kcy;&acy;&tcy;&iecy;&gcy;&ocy;&rcy;&icy;&icy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;  &quot;index&quot;  &icy;&lcy;&icy;  &quot;status&quot; .</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeltperf-event-messagegtcode"> <code>&lt;perf-event-message&gt;</code> </dt> <dd> <p><span data-i18n="dba5d3b44259bfc533c01492d5197a868830afc12ce8f354293d1c5135086a57/73" data-source="is a free-form &lt;code&gt;printf()&lt;/code&gt; message intended for human consumption." onmousemove="i18n(this)">&pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;  <code>printf()</code>  &vcy; &scy;&vcy;&ocy;&bcy;&ocy;&dcy;&ncy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&iecy;, &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ncy;&ocy;&iecy; &dcy;&lcy;&yacy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&lcy;&iecy;&ncy;&icy;&yacy; &chcy;&iecy;&lcy;&ocy;&vcy;&iecy;&kcy;&ocy;&mcy;.</span></p> </dd> </dl> </div> <div> <div> <pre class="hljs language-lua"><span class="hljs-number">15</span>:<span class="hljs-number">33</span>:<span class="hljs-number">33.532712</span> wt-<span class="hljs-built_in">status</span>.c:<span class="hljs-number">2310</span>                  | d0 | main                     | region_enter | r1  |  <span class="hljs-number">0.126064</span> |           | <span class="hljs-built_in">status</span>     | label:<span class="hljs-built_in">print</span>
<span class="hljs-number">15</span>:<span class="hljs-number">33</span>:<span class="hljs-number">33.532712</span> wt-<span class="hljs-built_in">status</span>.c:<span class="hljs-number">2331</span>                  | d0 | main                     | region_leave | r1  |  <span class="hljs-number">0.127568</span> |  <span class="hljs-number">0.001504</span> | <span class="hljs-built_in">status</span>     | label:<span class="hljs-built_in">print</span></pre> </div> </div> <p><span data-i18n="ecb49fa051c3567a6ed01eaabfc021c1cf03ac5aa28b960db057cbe568690d51/53" data-source="If &lt;code&gt;GIT_TRACE2_PERF_BRIEF&lt;/code&gt; or &lt;code&gt;trace2.perfBrief&lt;/code&gt; is true, the &lt;code&gt;time&lt;/code&gt;, &lt;code&gt;file&lt;/code&gt;, and &lt;code&gt;line&lt;/code&gt; fields are omitted." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy;  <code>GIT_TRACE2_PERF_BRIEF</code>  &icy;&lcy;&icy;  <code>trace2.perfBrief</code>  &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; true, &pcy;&ocy;&lcy;&yacy;  <code>time</code> ,  <code>file</code>  &icy;  <code>line</code>  &ocy;&pcy;&ucy;&scy;&kcy;&acy;&yucy;&tcy;&scy;&yacy;.</span></p> <div> <div> <pre class="hljs language-less"><span class="hljs-selector-tag">d0</span> | <span class="hljs-selector-tag">main</span>                     | <span class="hljs-selector-tag">region_leave</span> | <span class="hljs-selector-tag">r1</span>  |  <span class="hljs-number">0.011717</span> |  <span class="hljs-number">0.009122</span> | <span class="hljs-selector-tag">index</span>      | <span class="hljs-selector-tag">label</span>:<span class="hljs-selector-tag">preload</span></pre> </div> </div> <p><span data-i18n="6a25c7ca402611fedf66c3c9205cb74006eff5ef386655d97d05b4cd1068abaa/9b" data-source="The PERF target is intended for interactive performance analysis during development and is quite noisy." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&softcy; PERF &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&acy; &dcy;&lcy;&yacy; &icy;&ncy;&tcy;&iecy;&rcy;&acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&gcy;&ocy; &acy;&ncy;&acy;&lcy;&icy;&zcy;&acy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&icy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &rcy;&acy;&zcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy; &icy; &dcy;&ocy;&vcy;&ocy;&lcy;&softcy;&ncy;&ocy; &shcy;&ucy;&mcy;&ncy;&acy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_event_format"><span data-i18n="52a6f3f51fd65d05435d3390ac6bcd6150392180708ac50151e5048da60c8dfa/7f" data-source="EVENT Format" onmousemove="i18n(this)">EVENT Format</span></h3> <p><span data-i18n="e104f17adbee4e05eba8a25d6d8eccfd5c09d9b4cb95a1c4c4120c13ae584510/fa" data-source="Each event is a JSON-object containing multiple key/value pairs written as a single line and followed by a LF." onmousemove="i18n(this)">&Kcy;&acy;&zhcy;&dcy;&ocy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy; JSON, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&icy;&jcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&acy;&rcy; &kcy;&lcy;&yucy;&chcy;/&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy; &vcy;&icy;&dcy;&iecy; &ocy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; LF.</span></p> <div> <div> <pre class="hljs language-bash"><span class="hljs-string">&apos;{&apos;</span> &lt;key&gt; <span class="hljs-string">&apos;:&apos;</span> &lt;value&gt; [<span class="hljs-string">&apos;,&apos;</span> &lt;key&gt; <span class="hljs-string">&apos;:&apos;</span> &lt;value&gt;]* <span class="hljs-string">&apos;}&apos;</span> LF</pre> </div> </div> <p><span data-i18n="a64a2484225d5effc7a782b886d2f02e693cfd09ac55f5dc4a32d4b5a0bf7880/96" data-source="Some key/value pairs are common to all events and some are event-specific." onmousemove="i18n(this)">&Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&acy;&rcy;&ycy; &kcy;&lcy;&yucy;&chcy;/&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ocy;&bcy;&shchcy;&icy;&mcy;&icy; &dcy;&lcy;&yacy; &vcy;&scy;&iecy;&khcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy;, &acy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &zcy;&acy;&vcy;&icy;&scy;&yacy;&tcy; &ocy;&tcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;.</span></p> <div> <h4 class="text-body-emphasis"  id="_common_keyvalue_pairs"><span data-i18n="b841f1b8b7b1cdfe71a03cf60d812fb209f98d41b2240a52d3045230885840da/09" data-source="Common Key/Value Pairs" onmousemove="i18n(this)">&Ocy;&bcy;&shchcy;&icy;&iecy; &pcy;&acy;&rcy;&ycy; &kcy;&lcy;&yucy;&chcy;/&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;</span></h4> <p><span data-i18n="62e76092a96cdda5808e593e58eb7542914da0de8c713c6d935777cd0dcfdf9e/50" data-source="The following key/value pairs are common to all events:" onmousemove="i18n(this)">&Scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &pcy;&acy;&rcy;&ycy; &kcy;&lcy;&yucy;&chcy;/&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ocy;&bcy;&shchcy;&icy;&mcy;&icy; &dcy;&lcy;&yacy; &vcy;&scy;&iecy;&khcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy;:</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;version&quot;</span>,
        <span class="hljs-string">&quot;sid&quot;</span>:<span class="hljs-string">&quot;20190408T191827.272759Z-H9b68c35f-P00003510&quot;</span>,
        <span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;main&quot;</span>,
        <span class="hljs-string">&quot;time&quot;</span>:<span class="hljs-string">&quot;2019-04-08T19:18:27.282761Z&quot;</span>,
        <span class="hljs-string">&quot;file&quot;</span>:<span class="hljs-string">&quot;common-main.c&quot;</span>,
        <span class="hljs-string">&quot;line&quot;</span>:42,
        ...
}</pre> </div> </div> <div> <dl> <dt id="Documentation/technical/api-trace2.txt-codeeventlteventgtcode"> <code>&quot;event&quot;:&lt;event&gt;</code> </dt> <dd> <p><span data-i18n="08ff80e7cd03b677a1296e0bb3bf07bbf4693bd583008a9a56586e64e3960cc5/19" data-source="is the event name." onmousemove="i18n(this)">&ecy;&tcy;&ocy; &ncy;&acy;&zcy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codesidltsidgtcode"> <code>&quot;sid&quot;:&lt;sid&gt;</code> </dt> <dd> <p><span data-i18n="9f756b6f554329feb2b6027f383a45cf61eb22b6c8e3860721795819e97b40ec/91" data-source="is the session-id. This is a unique string to identify the process instance to allow all events emitted by a process to be identified. A session-id is used instead of a PID because PIDs are recycled by the OS. For child git processes, the session-id is prepended with the session-id of the parent git process to allow parent-child relationships to be identified during post-processing." onmousemove="i18n(this)">&ecy;&tcy;&ocy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &scy;&iecy;&acy;&ncy;&scy;&acy;. &Ecy;&tcy;&ocy; &ucy;&ncy;&icy;&kcy;&acy;&lcy;&softcy;&ncy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;, &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ucy;&yucy;&shchcy;&acy;&yacy; &ecy;&kcy;&zcy;&iecy;&mcy;&pcy;&lcy;&yacy;&rcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;, &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&yucy;&shchcy;&acy;&yacy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;, &icy;&scy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&iecy; &ocy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;. &Icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &scy;&iecy;&acy;&ncy;&scy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; PID, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; PID &pcy;&iecy;&rcy;&iecy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&ocy;&ncy;&ncy;&ocy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ocy;&jcy;. &Dcy;&lcy;&yacy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&khcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&vcy;  git  &kcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&ucy; &scy;&iecy;&acy;&ncy;&scy;&acy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &scy;&iecy;&acy;&ncy;&scy;&acy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;  git , &chcy;&tcy;&ocy;&bcy;&ycy; &mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&ycy;&lcy;&ocy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&tcy;&ncy;&ocy;&shcy;&iecy;&ncy;&icy;&yacy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;-&pcy;&ocy;&tcy;&ocy;&mcy;&ocy;&kcy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &pcy;&ocy;&scy;&tcy;&ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codethreadltthreadgtcode"> <code>&quot;thread&quot;:&lt;thread&gt;</code> </dt> <dd> <p><span data-i18n="cd6076a00486ef438312acf09b0a53d8baf70f97a833fb6606c5e0ae981462c4/37" data-source="is the thread name." onmousemove="i18n(this)">&ecy;&tcy;&ocy; &icy;&mcy;&yacy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codetimelttimegtcode"> <code>&quot;time&quot;:&lt;time&gt;</code> </dt> <dd> <p><span data-i18n="f457f2b2857d4934fe4d6a8566a6fd011c7cbaac91d2bd60ededd85585e0eabb/f0" data-source="is the UTC time of the event." onmousemove="i18n(this)">&mdash; &vcy;&rcy;&iecy;&mcy;&yacy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &pcy;&ocy; &vcy;&scy;&iecy;&mcy;&icy;&rcy;&ncy;&ocy;&mcy;&ucy; &kcy;&ocy;&ocy;&rcy;&dcy;&icy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&mcy;&ucy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codefileltfilenamegtcode"> <code>&quot;file&quot;:&lt;filename&gt;</code> </dt> <dd> <p><span data-i18n="61e1496de9b4dee00aeaf145be5d4e15955f5e1bc00081952613cfaef09e3a98/6e" data-source="is source file generating the event." onmousemove="i18n(this)">&mdash; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&yucy;&shchcy;&icy;&jcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codelineltline-numbergtcode"> <code>&quot;line&quot;:&lt;line-number&gt;</code> </dt> <dd> <p><span data-i18n="005f07d5246155c156ec52c6c912c8d43554fc053e394cde5ecaeef2d4db5634/fc" data-source="is the integer source line number generating the event." onmousemove="i18n(this)">&mdash; &ecy;&tcy;&ocy; &tscy;&iecy;&lcy;&ocy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &ncy;&ocy;&mcy;&iecy;&rcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &icy;&scy;&tcy;&ocy;&chcy;&ncy;&icy;&kcy;&acy;, &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-coderepoltrepo-idgtcode"> <code>&quot;repo&quot;:&lt;repo-id&gt;</code> </dt> <dd> <p><span data-i18n="e994eebed0ac80ea4e3d9cc83f6191d53151deb1c58dde9ae78bceb09d750ac6/c6" data-source="when present, is the integer repo-id as described previously." onmousemove="i18n(this)">&iecy;&scy;&lcy;&icy; &ocy;&ncy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &ecy;&tcy;&ocy; &tscy;&iecy;&lcy;&ocy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &rcy;&iecy;&pcy;&ocy;, &kcy;&acy;&kcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ocy; &rcy;&acy;&ncy;&iecy;&iecy;.</span></p> </dd> </dl> </div> <p><span data-i18n="e470890fdb0357a1481d3c5b647c241b1eda64b398776e3aed13818eba978ac4/0d" data-source="If &lt;code&gt;GIT_TRACE2_EVENT_BRIEF&lt;/code&gt; or &lt;code&gt;trace2.eventBrief&lt;/code&gt; is true, the &lt;code&gt;file&lt;/code&gt; and &lt;code&gt;line&lt;/code&gt; fields are omitted from all events and the &lt;code&gt;time&lt;/code&gt; field is only present on the &amp;quot;start&amp;quot; and &amp;quot;atexit&amp;quot; events." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy;  <code>GIT_TRACE2_EVENT_BRIEF</code>  &icy;&lcy;&icy;  <code>trace2.eventBrief</code>  &icy;&mcy;&iecy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; true, &pcy;&ocy;&lcy;&yacy;  <code>file</code>  &icy;  <code>line</code>  &icy;&scy;&kcy;&lcy;&yucy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&zcy; &vcy;&scy;&iecy;&khcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy;, &acy; &pcy;&ocy;&lcy;&iecy;  <code>time</code>  &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;&khcy;  &quot;start&quot;  &icy;  &quot;atexit&quot; .</span></p> </div> <div> <h4 class="text-body-emphasis"  id="_event_specific_keyvalue_pairs"><span data-i18n="95d5882d6b568e69cb4d61f18d588b3c63f2aff2ce72a04847d3f5a17d3d44a2/54" data-source="Event-Specific Key/Value Pairs" onmousemove="i18n(this)">&Pcy;&acy;&rcy;&ycy; &kcy;&lcy;&yucy;&chcy;/&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;</span></h4> <div> <dl> <dt id="Documentation/technical/api-trace2.txt-codeversioncode"> <code>&quot;version&quot;</code> </dt> <dd> <p><span data-i18n="5c0e3319a890c9153ce8172464b67b55985d40cf049a36f6dbe84a295edaa757/be" data-source="This event gives the version of the executable and the EVENT format. It should always be the first event in a trace session. The EVENT format version will be incremented if new event types are added, if existing fields are removed, or if there are significant changes in interpretation of existing events or fields. Smaller changes, such as adding a new field to an existing event, will not require an increment to the EVENT format version." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &vcy;&iecy;&rcy;&scy;&icy;&yucy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &icy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; EVENT. &Ecy;&tcy;&ocy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &bcy;&ycy;&tcy;&softcy; &pcy;&iecy;&rcy;&vcy;&ocy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &vcy; &scy;&iecy;&acy;&ncy;&scy;&iecy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;. &Vcy;&iecy;&rcy;&scy;&icy;&yacy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; EVENT &bcy;&ucy;&dcy;&iecy;&tcy; &ucy;&vcy;&iecy;&lcy;&icy;&chcy;&icy;&vcy;&acy;&tcy;&softcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&ocy;&vcy;&ycy;&iecy; &tcy;&icy;&pcy;&ycy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy;, &ucy;&dcy;&acy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &pcy;&ocy;&lcy;&yacy; &icy;&lcy;&icy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&yacy;&tcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &icy;&ncy;&tcy;&iecy;&rcy;&pcy;&rcy;&iecy;&tcy;&acy;&tscy;&icy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy; &icy;&lcy;&icy; &pcy;&ocy;&lcy;&iecy;&jcy;. &Ncy;&iecy;&bcy;&ocy;&lcy;&softcy;&shcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&yacy; &kcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&mcy;&ucy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yucy;, &ncy;&iecy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ucy;&yucy;&tcy; &ucy;&vcy;&iecy;&lcy;&icy;&chcy;&iecy;&ncy;&icy;&yacy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; EVENT.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;version&quot;</span>,
        ...
        <span class="hljs-string">&quot;evt&quot;</span>:<span class="hljs-string">&quot;3&quot;</span>,                       <span class="hljs-comment" title="# EVENT format version"># &vcy;&iecy;&rcy;&scy;&icy;&yacy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; EVENT</span>
        <span class="hljs-string">&quot;exe&quot;</span>:<span class="hljs-string">&quot;2.20.1.155.g426c96fcdb&quot;</span> <span class="hljs-comment" title="# git version"># git-&vcy;&iecy;&rcy;&scy;&icy;&yacy;</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codetoomanyfilescode"> <code>&quot;too_many_files&quot;</code> </dt> <dd> <p><span data-i18n="581759115cacddf24dd64db1bc71747014ac2f978a1843aac0833e24a4306c8a/eb" data-source="This event is written to the git-trace2-discard sentinel file if there are too many files in the target trace directory (see the trace2.maxFiles config option)." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &dcy;&ocy;&zcy;&ocy;&rcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; git-trace2-discard, &iecy;&scy;&lcy;&icy; &vcy; &tscy;&iecy;&lcy;&iecy;&vcy;&ocy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; &scy;&lcy;&icy;&shcy;&kcy;&ocy;&mcy; &mcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; (&scy;&mcy;. &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;2.maxFiles).</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;too_many_files&quot;</span>,
        ...
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codestartcode"> <code>&quot;start&quot;</code> </dt> <dd> <p><span data-i18n="8b03aab1be3324d154ace16bb41623470c673c2298b7bfbd2afe560f72cf3054/28" data-source="This event contains the complete argv received by main()." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &pcy;&ocy;&lcy;&ncy;&ycy;&jcy; argv, &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ycy;&jcy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&iecy;&jcy; main().</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;start&quot;</span>,
        ...
        <span class="hljs-string">&quot;t_abs&quot;</span>:0.001227, <span class="hljs-comment"># elapsed time in seconds</span>
        <span class="hljs-string">&quot;argv&quot;</span>:[<span class="hljs-string">&quot;git&quot;</span>,<span class="hljs-string">&quot;version&quot;</span>]
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codeexitcode"> <code>&quot;exit&quot;</code> </dt> <dd> <p><span data-i18n="dc97784d35cb8f1a66a8f702bedbe0d2dcc09c43e90d11edaeb90aeecf60b6ab/f4" data-source="This event is emitted when git calls &lt;code&gt;exit()&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy;  git  &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>exit()</code> .</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;exit&quot;</span>,
        ...
        <span class="hljs-string">&quot;t_abs&quot;</span>:0.001227, <span class="hljs-comment"># elapsed time in seconds</span>
        <span class="hljs-string">&quot;code&quot;</span>:0          <span class="hljs-comment"># exit code</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codeatexitcode"> <code>&quot;atexit&quot;</code> </dt> <dd> <p><span data-i18n="c7bceca4f83bd4cc846e9321e8a6c1f21d29e697d6677bc56a359c25a617f2ea/ac" data-source="This event is emitted by the Trace2 &lt;code&gt;atexit&lt;/code&gt; routine during final shutdown. It should be the last event emitted by the process." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&ocy;&tscy;&iecy;&dcy;&ucy;&rcy;&ocy;&jcy; Trace2  <code>atexit</code>  &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;. &Ecy;&tcy;&ocy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &bcy;&ycy;&tcy;&softcy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;, &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ocy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&mcy;.</span></p> <p><span data-i18n="dc8b13dbcd4a59fc4cfe49693c75b35dd3fa4c78ef3b61e3136c64a92fca301c/0d" data-source="(The elapsed time reported here is greater than the time reported in the &amp;quot;exit&amp;quot; event because it runs after all other atexit tasks have completed.)" onmousemove="i18n(this)">(&Zcy;&acy;&tcy;&rcy;&acy;&chcy;&iecy;&ncy;&ncy;&ocy;&iecy; &zcy;&dcy;&iecy;&scy;&softcy; &vcy;&rcy;&iecy;&mcy;&yacy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy;, &chcy;&iecy;&mcy; &vcy;&rcy;&iecy;&mcy;&yacy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&iecy; &vcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&icy;  &quot;exit&quot; , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ocy;&ncy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &zcy;&acy;&dcy;&acy;&chcy; atexit.)</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;atexit&quot;</span>,
        ...
        <span class="hljs-string">&quot;t_abs&quot;</span>:0.001227, <span class="hljs-comment"># elapsed time in seconds</span>
        <span class="hljs-string">&quot;code&quot;</span>:0          <span class="hljs-comment" title="# exit code"># &kcy;&ocy;&dcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy;</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codesignalcode"> <code>&quot;signal&quot;</code> </dt> <dd> <p><span data-i18n="d974364f467c1522c56127dc8f0b3303a87dbb3af712837c776b52d86a7a801a/f2" data-source="This event is emitted when the program is terminated by a user signal. Depending on the platform, the signal event may prevent the &amp;quot;atexit&amp;quot; event from being generated." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&acy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy; &scy;&icy;&gcy;&ncy;&acy;&lcy;&ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;. &Vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&ycy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &scy;&icy;&gcy;&ncy;&acy;&lcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&iecy;&pcy;&yacy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yucy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;  &quot;atexit&quot; .</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;signal&quot;</span>,
        ...
        <span class="hljs-string">&quot;t_abs&quot;</span>:0.001227,  <span class="hljs-comment" title="# elapsed time in seconds"># &pcy;&rcy;&ocy;&shcy;&iecy;&dcy;&shcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&acy;&khcy;</span>
        <span class="hljs-string">&quot;signo&quot;</span>:13         <span class="hljs-comment" title="# SIGTERM, SIGINT, etc."># SIGTERM, SIGINT &icy; &tcy;. &dcy;.</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codeerrorcode"> <code>&quot;error&quot;</code> </dt> <dd> <p><span data-i18n="c00fc7fcf365c0869be41bc6d1e89f4d7101f7e68b81fb706b269c3ebe0f4092/b1" data-source="This event is emitted when one of the &lt;code&gt;BUG()&lt;/code&gt;, &lt;code&gt;bug()&lt;/code&gt;, &lt;code&gt;error()&lt;/code&gt;, &lt;code&gt;die()&lt;/code&gt;, &lt;code&gt;warning()&lt;/code&gt;, or &lt;code&gt;usage()&lt;/code&gt; functions are called." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&ycy;&zcy;&ocy;&vcy;&iecy; &ocy;&dcy;&ncy;&ocy;&jcy; &icy;&zcy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&jcy;  <code>BUG()</code> ,  <code>bug()</code> ,  <code>error()</code> ,  <code>die()</code> ,  <code>warning()</code>  &icy;&lcy;&icy;  <code>usage()</code> .</span></p> <div> <div> <pre class="hljs language-cpp">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;error&quot;</span>,
        ...
        <span class="hljs-string">&quot;msg&quot;</span>:<span class="hljs-string">&quot;invalid option: --cahced&quot;</span>, <span class="hljs-meta"># formatted <span class="hljs-keyword">error</span> message</span>
        <span class="hljs-string">&quot;fmt&quot;</span>:<span class="hljs-string">&quot;invalid option: %s&quot;</span>          <span class="hljs-meta"># <span class="hljs-keyword">error</span> format string</span>
}</pre> </div> </div> <p><span data-i18n="703f37ece1696bb38b2349f6e7eb221d0d237636cc1ffa45a8540a8e98e3e921/5c" data-source="The error event may be emitted more than once. The format string allows post-processors to group errors by type without worrying about specific error arguments." onmousemove="i18n(this)">&Scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &ocy;&shcy;&icy;&bcy;&kcy;&icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &rcy;&acy;&zcy;&acy;. &Scy;&tcy;&rcy;&ocy;&kcy;&acy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &pcy;&ocy;&scy;&tcy;&pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&rcy;&acy;&mcy; &gcy;&rcy;&ucy;&pcy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&shcy;&icy;&bcy;&kcy;&icy; &pcy;&ocy; &tcy;&icy;&pcy;&ucy;, &ncy;&iecy; &bcy;&iecy;&scy;&pcy;&ocy;&kcy;&ocy;&yacy;&scy;&softcy; &ocy; &kcy;&ocy;&ncy;&kcy;&rcy;&iecy;&tcy;&ncy;&ycy;&khcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&khcy; &ocy;&shcy;&icy;&bcy;&kcy;&icy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codecmdpathcode"> <code>&quot;cmd_path&quot;</code> </dt> <dd> <p><span data-i18n="73933f018b1e6d698d863525840df484794dc575080e0ccd19838413189bc2de/da" data-source="This event contains the discovered full path of the git executable (on platforms that are configured to resolve it)." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&ocy;&lcy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy; &kcy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ocy;&mcy;&ucy; &fcy;&acy;&jcy;&lcy;&ucy;  git  (&ncy;&acy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&acy;&khcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ycy; &dcy;&lcy;&yacy; &iecy;&gcy;&ocy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy;).</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;cmd_path&quot;</span>,
        ...
        <span class="hljs-string">&quot;path&quot;</span>:<span class="hljs-string">&quot;C:/work/gfw/git.exe&quot;</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codecmdancestrycode"> <code>&quot;cmd_ancestry&quot;</code> </dt> <dd> <p><span data-i18n="301cd5269dc40e74d8863551e804eadae1e124dae6bea7c5a34d3fc8a2dca15e/71" data-source="This event contains the text command name for the parent (and earlier generations of parents) of the current process, in an array ordered from nearest parent to furthest great-grandparent. It may not be implemented on all platforms." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &icy;&mcy;&yacy; &tcy;&iecy;&kcy;&scy;&tcy;&ocy;&vcy;&ocy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &dcy;&lcy;&yacy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&yacy; (&icy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&icy;&khcy; &pcy;&ocy;&kcy;&ocy;&lcy;&iecy;&ncy;&icy;&jcy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&iecy;&jcy;) &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &vcy; &mcy;&acy;&scy;&scy;&icy;&vcy;&iecy;, &ucy;&pcy;&ocy;&rcy;&yacy;&dcy;&ocy;&chcy;&iecy;&ncy;&ncy;&ocy;&mcy; &ocy;&tcy; &bcy;&lcy;&icy;&zhcy;&acy;&jcy;&shcy;&iecy;&gcy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&yacy; &kcy; &scy;&acy;&mcy;&ocy;&mcy;&ucy; &dcy;&acy;&lcy;&softcy;&ncy;&iecy;&mcy;&ucy; &pcy;&rcy;&acy;&rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&yucy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&ocy;&vcy;&acy;&ncy;&ocy; &ncy;&iecy; &ncy;&acy; &vcy;&scy;&iecy;&khcy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&acy;&khcy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;cmd_ancestry&quot;</span>,
        ...
        <span class="hljs-string">&quot;ancestry&quot;</span>:[<span class="hljs-string">&quot;bash&quot;</span>,<span class="hljs-string">&quot;tmux: server&quot;</span>,<span class="hljs-string">&quot;systemd&quot;</span>]
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codecmdnamecode"> <code>&quot;cmd_name&quot;</code> </dt> <dd> <p><span data-i18n="7e33a96b83b744a0bcea2bd90e12fcd3186bbc52baaaf7248b90ea8d5020d2e5/a0" data-source="This event contains the command name for this git process and the hierarchy of commands from parent git processes." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &icy;&mcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;  git  &icy; &icy;&iecy;&rcy;&acy;&rcy;&khcy;&icy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&khcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&vcy;  git .</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;cmd_name&quot;</span>,
        ...
        <span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;pack-objects&quot;</span>,
        <span class="hljs-string">&quot;hierarchy&quot;</span>:<span class="hljs-string">&quot;push/pack-objects&quot;</span>
}</pre> </div> </div> <p><span data-i18n="f106755608eeeb82cd7b2cfed3ffc678d71ea849d5bdb02169151245a9a87e52/4a" data-source="Normally, the &amp;quot;name&amp;quot; field contains the canonical name of the command. When a canonical name is not available, one of these special values are used:" onmousemove="i18n(this)">&Ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &pcy;&ocy;&lcy;&iecy;  &quot;name&quot;  &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&iecy; &icy;&mcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;. &IEcy;&scy;&lcy;&icy; &kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&iecy; &icy;&mcy;&yacy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ocy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&ncy;&ocy; &icy;&zcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &scy;&pcy;&iecy;&tscy;&icy;&acy;&lcy;&softcy;&ncy;&ycy;&khcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy;:</span></p> <div> <div> <pre class="hljs language-vbnet"><span class="hljs-string">&quot;_query_&quot;</span>            # <span class="hljs-string">&quot;git --html-path&quot;</span>
<span class="hljs-string">&quot;_run_dashed_&quot;</span>       # <span class="hljs-keyword">when</span> <span class="hljs-string">&quot;git foo&quot;</span> tries <span class="hljs-keyword">to</span> run <span class="hljs-string">&quot;git-foo&quot;</span>
<span class="hljs-string">&quot;_run_shell_alias_&quot;</span>  # <span class="hljs-keyword">alias</span> expansion <span class="hljs-keyword">to</span> a shell command
<span class="hljs-string">&quot;_run_git_alias_&quot;</span>    # <span class="hljs-keyword">alias</span> expansion <span class="hljs-keyword">to</span> a git command
<span class="hljs-string">&quot;_usage_&quot;</span>            # usage <span class="hljs-keyword">error</span></pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codecmdmodecode"> <code>&quot;cmd_mode&quot;</code> </dt> <dd> <p><span data-i18n="2f9fe817bb18680110c3d5e55aa6d3f01629a5330ec5e3a36fc0a90b3db195e6/0c" data-source="This event, when present, describes the command variant. This event may be emitted more than once." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&ocy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;, &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &vcy;&acy;&rcy;&icy;&acy;&ncy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;. &Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ocy; &bcy;&ocy;&lcy;&iecy;&iecy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &rcy;&acy;&zcy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;cmd_mode&quot;</span>,
        ...
        <span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;branch&quot;</span>
}</pre> </div> </div> <p><span data-i18n="b840f3b12caa0f8f95a3586798fb0ef7935d536e5f4b27f441a29ef2342a7ad9/b3" data-source="The &amp;quot;name&amp;quot; field is an arbitrary string to describe the command mode. For example, checkout can checkout a branch or an individual file. And these variations typically have different performance characteristics that are not comparable." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&iecy;  &quot;name&quot;  &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&lcy;&softcy;&ncy;&ucy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;, &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, checkout &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&softcy; &vcy;&iecy;&tcy;&kcy;&ucy; &icy;&lcy;&icy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;. &Icy; &ecy;&tcy;&icy; &vcy;&acy;&rcy;&icy;&acy;&tscy;&icy;&icy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &icy;&mcy;&iecy;&yucy;&tcy; &rcy;&acy;&zcy;&ncy;&ycy;&iecy;, &ncy;&iecy;&scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&icy;&mcy;&ycy;&iecy; &Tcy;&Tcy;&KHcy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codealiascode"> <code>&quot;alias&quot;</code> </dt> <dd> <p><span data-i18n="a22ce4fc42764f788bb0ed1641ae2beb9b5ccf4c21617e45c4308b98f8986a8c/4b" data-source="This event is present when an alias is expanded." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &pcy;&rcy;&icy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&icy;&icy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&ncy;&icy;&mcy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;alias&quot;</span>,
        ...
        <span class="hljs-string">&quot;alias&quot;</span>:<span class="hljs-string">&quot;l&quot;</span>,                 <span class="hljs-comment" title="# registered alias"># &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&ncy;&icy;&mcy;</span>
        <span class="hljs-string">&quot;argv&quot;</span>:[<span class="hljs-string">&quot;log&quot;</span>,<span class="hljs-string">&quot;--graph&quot;</span>] <span class="hljs-comment" title="# alias expansion"># &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&icy;&iecy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&ncy;&icy;&mcy;&acy;</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codechildstartcode"> <code>&quot;child_start&quot;</code> </dt> <dd> <p><span data-i18n="cda383a4367405d350c40f521a73db05559147efeaebab00ec42e8eb9f6bce8a/4d" data-source="This event describes a child process that is about to be spawned." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy;&ocy;&tcy;-&vcy;&ocy;&tcy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&ucy;&shchcy;&iecy;&ncy;.</span></p> <div> <div> <pre class="hljs language-kotlin">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;child_start&quot;</span>,
        ...
        <span class="hljs-string">&quot;child_id&quot;</span>:<span class="hljs-number">2</span>,
        <span class="hljs-string">&quot;child_class&quot;</span>:<span class="hljs-string">&quot;?&quot;</span>,
        <span class="hljs-string">&quot;use_shell&quot;</span>:<span class="hljs-literal">false</span>,
        <span class="hljs-string">&quot;argv&quot;</span>:[<span class="hljs-string">&quot;git&quot;</span>,<span class="hljs-string">&quot;rev-list&quot;</span>,<span class="hljs-string">&quot;--objects&quot;</span>,<span class="hljs-string">&quot;--stdin&quot;</span>,<span class="hljs-string">&quot;--not&quot;</span>,<span class="hljs-string">&quot;--all&quot;</span>,<span class="hljs-string">&quot;--quiet&quot;</span>]

        <span class="hljs-string">&quot;hook_name&quot;</span>:<span class="hljs-string">&quot;&lt;hook_name&gt;&quot;</span>  # present <span class="hljs-keyword">when</span> child_<span class="hljs-keyword">class</span> <span class="hljs-title class_">is</span> &quot;<span class="hljs-title">hook</span>&quot;
        <span class="hljs-string">&quot;cd&quot;</span>:<span class="hljs-string">&quot;&lt;path&gt;&quot;</span>                   # present <span class="hljs-keyword">when</span> cd <span class="hljs-keyword">is</span> required
}</pre> </div> </div> <p><span data-i18n="4251fea108241189834cfad639e466ee190a39279b743edc24b0482519a7f326/a0" data-source="The &amp;quot;child_id&amp;quot; field can be used to match this child_start with the corresponding child_exit event." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&iecy;  &quot;child_id&quot;  &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &scy;&ocy;&pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; child_start &scy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;&mcy; child_exit.</span></p> <p><span data-i18n="29d32addebe1b77fa227c30dcbd6fa708f8e4cbc6570bc6b863e4bf49bdf2acc/b8" data-source="The &amp;quot;child_class&amp;quot; field is a rough classification, such as &amp;quot;editor&amp;quot;, &amp;quot;pager&amp;quot;, &amp;quot;transport/*&amp;quot;, and &amp;quot;hook&amp;quot;. Unclassified children are classified with &amp;quot;?&amp;quot;." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&iecy;  &quot;child_class&quot;  &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &pcy;&rcy;&icy;&bcy;&lcy;&icy;&zcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &kcy;&lcy;&acy;&scy;&scy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yucy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;  &quot;editor&quot; ,  &quot;pager&quot; ,  &quot;transport/*&quot;  &icy;  &quot;hook&quot; . &Ncy;&iecy;&kcy;&lcy;&acy;&scy;&scy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &dcy;&iecy;&tcy;&icy; &kcy;&lcy;&acy;&scy;&scy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy;  &quot;?&quot; .</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codechildexitcode"> <code>&quot;child_exit&quot;</code> </dt> <dd> <p><span data-i18n="be20b8e0d6d2f616be3c51a47d1962dce8e6e16185a85018eab6132b714e2530/a6" data-source="This event is generated after the current process has returned from the &lt;code&gt;waitpid()&lt;/code&gt; and collected the exit information from the child." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &vcy;&iecy;&rcy;&ncy;&ucy;&lcy;&scy;&yacy; &icy;&zcy;  <code>waitpid()</code>  &icy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&lcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &ocy; &vcy;&ycy;&khcy;&ocy;&dcy;&iecy; &ocy;&tcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;child_exit&quot;</span>,
        ...
        <span class="hljs-string">&quot;child_id&quot;</span>:2,
        <span class="hljs-string">&quot;pid&quot;</span>:14708,         <span class="hljs-comment"># child PID</span>
        <span class="hljs-string">&quot;code&quot;</span>:0,         <span class="hljs-comment" title="# child exit-code"># &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &kcy;&ocy;&dcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy;</span>
        <span class="hljs-string">&quot;t_rel&quot;</span>:0.110605 <span class="hljs-comment"># observed run-time of child process</span>
}</pre> </div> </div> <p><span data-i18n="11a66636e9ae1ae296eab1f0d7b5c20b8288443267f17528e0f6f88234c921db/e7" data-source="Note that the session-id of the child process is not available to the current/spawning process, so the child&amp;rsquo;s PID is reported here as a hint for post-processing. (But it is only a hint because the child process may be a shell script which doesn&amp;rsquo;t have a session-id.)" onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &scy;&iecy;&acy;&ncy;&scy;&acy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&ucy;&pcy;&iecy;&ncy; &dcy;&lcy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy;/&pcy;&ocy;&rcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; PID &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &zcy;&dcy;&iecy;&scy;&softcy; &kcy;&acy;&kcy; &pcy;&ocy;&dcy;&scy;&kcy;&acy;&zcy;&kcy;&acy; &dcy;&lcy;&yacy; &pcy;&ocy;&scy;&tcy;&ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy;. (&Ncy;&ocy; &ecy;&tcy;&ocy; &vcy;&scy;&iecy;&gcy;&ocy; &lcy;&icy;&shcy;&softcy; &pcy;&ocy;&dcy;&scy;&kcy;&acy;&zcy;&kcy;&acy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&iecy;&mcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy;, &ucy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &ncy;&iecy;&tcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&acy; &scy;&iecy;&acy;&ncy;&scy;&acy;.)</span></p> <p><span data-i18n="c649f30b658d944888fabf08bddab80c4e8d4aa8cc8721f317733673fcfbe54e/ce" data-source="Note that the &lt;code&gt;t_rel&lt;/code&gt; field contains the observed run time in seconds for the child process (starting before the fork/exec/spawn and stopping after the &lt;code&gt;waitpid()&lt;/code&gt; and includes OS process creation overhead). So this time will be slightly larger than the atexit time reported by the child process itself." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy;  <code>t_rel</code>  &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &ncy;&acy;&bcy;&lcy;&yucy;&dcy;&acy;&iecy;&mcy;&ocy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &vcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&acy;&khcy; (&ncy;&acy;&chcy;&icy;&ncy;&acy;&yacy; &dcy;&ocy; &rcy;&acy;&zcy;&vcy;&iecy;&tcy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;/&vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy;/&pcy;&ocy;&rcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy; &icy; &zcy;&acy;&kcy;&acy;&ncy;&chcy;&icy;&vcy;&acy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy;  <code>waitpid()</code> , &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &scy;&lcy;&ucy;&zhcy;&iecy;&bcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &Ocy;&Scy;). &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &ecy;&tcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &bcy;&ucy;&dcy;&iecy;&tcy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy;, &chcy;&iecy;&mcy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy;, &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&mcy;&ocy;&iecy; &scy;&acy;&mcy;&icy;&mcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&mcy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codechildreadycode"> <code>&quot;child_ready&quot;</code> </dt> <dd> <p><span data-i18n="a3b23fbab3b64219f6890ca87876ffa05d5370ed18e13b746ca7f780a50ff443/df" data-source="This event is generated after the current process has started a background process and released all handles to it." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&lcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &icy; &ocy;&scy;&vcy;&ocy;&bcy;&ocy;&dcy;&icy;&lcy; &vcy;&scy;&iecy; &iecy;&gcy;&ocy; &dcy;&iecy;&scy;&kcy;&rcy;&icy;&pcy;&tcy;&ocy;&rcy;&ycy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;child_ready&quot;</span>,
        ...
        <span class="hljs-string">&quot;child_id&quot;</span>:2,
        <span class="hljs-string">&quot;pid&quot;</span>:14708,         <span class="hljs-comment" title="# child PID"># &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; PID</span>
        <span class="hljs-string">&quot;ready&quot;</span>:<span class="hljs-string">&quot;ready&quot;</span>, <span class="hljs-comment" title="# child ready state"># &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy; &gcy;&ocy;&tcy;&ocy;&vcy;&ncy;&ocy;&scy;&tcy;&icy; &kcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&mcy;&ucy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ucy;</span>
        <span class="hljs-string">&quot;t_rel&quot;</span>:0.110605 <span class="hljs-comment" title="# observed run-time of child process"># &ncy;&acy;&bcy;&lcy;&yucy;&dcy;&acy;&iecy;&mcy;&ocy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;</span>
}</pre> </div> </div> <p><span data-i18n="11a66636e9ae1ae296eab1f0d7b5c20b8288443267f17528e0f6f88234c921db/e7" data-source="Note that the session-id of the child process is not available to the current/spawning process, so the child&amp;rsquo;s PID is reported here as a hint for post-processing. (But it is only a hint because the child process may be a shell script which doesn&amp;rsquo;t have a session-id.)" onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &scy;&iecy;&acy;&ncy;&scy;&acy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&ucy;&pcy;&iecy;&ncy; &dcy;&lcy;&yacy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy;/&pcy;&ocy;&rcy;&ocy;&zhcy;&dcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; PID &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &zcy;&dcy;&iecy;&scy;&softcy; &kcy;&acy;&kcy; &pcy;&ocy;&dcy;&scy;&kcy;&acy;&zcy;&kcy;&acy; &dcy;&lcy;&yacy; &pcy;&ocy;&scy;&tcy;&ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy;. (&Ncy;&ocy; &ecy;&tcy;&ocy; &vcy;&scy;&iecy;&gcy;&ocy; &lcy;&icy;&shcy;&softcy; &pcy;&ocy;&dcy;&scy;&kcy;&acy;&zcy;&kcy;&acy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&iecy;&mcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&icy;, &ucy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &ncy;&iecy;&tcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&acy; &scy;&iecy;&acy;&ncy;&scy;&acy;.)</span></p> <p><span data-i18n="bfc355b45bc583b4d14eb404ff1fbbf9584e7c48b236004b59488444378fc1eb/08" data-source="This event is generated after the child is started in the background and given a little time to boot up and start working. If the child starts up normally while the parent is still waiting, the &amp;quot;ready&amp;quot; field will have the value &amp;quot;ready&amp;quot;. If the child is too slow to start and the parent times out, the field will have the value &amp;quot;timeout&amp;quot;. If the child starts but the parent is unable to probe it, the field will have the value &amp;quot;error&amp;quot;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; &icy; &iecy;&mcy;&ucy; &dcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &dcy;&lcy;&yacy; &zcy;&acy;&gcy;&rcy;&ucy;&zcy;&kcy;&icy; &icy; &ncy;&acy;&chcy;&acy;&lcy;&acy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;. &IEcy;&scy;&lcy;&icy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&ocy;&rcy;&mcy;&acy;&lcy;&softcy;&ncy;&ocy;, &pcy;&ocy;&kcy;&acy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &vcy;&scy;&iecy; &iecy;&shchcy;&iecy; &ocy;&zhcy;&icy;&dcy;&acy;&iecy;&tcy;, &pcy;&ocy;&lcy;&iecy;  &quot;ready&quot;  &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  &quot;ready&quot; . &IEcy;&scy;&lcy;&icy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &scy;&lcy;&icy;&shcy;&kcy;&ocy;&mcy; &mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&ocy;, &acy; &ucy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&ocy;&gcy;&ocy; &icy;&scy;&tcy;&iecy;&kcy;&lcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &ocy;&zhcy;&icy;&dcy;&acy;&ncy;&icy;&yacy;, &pcy;&ocy;&lcy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  &quot;timeout&quot; . &IEcy;&scy;&lcy;&icy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy;, &ncy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &pcy;&ocy;&lcy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  &quot;error&quot; .</span></p> <p><span data-i18n="175b90071a44c5c498e022e3bd54f6fbc2b8ec327a26c592261df433f8b69e1f/3d" data-source="After the parent process emits this event, it will release all of its handles to the child process and treat the child as a background daemon. So even if the child does eventually finish booting up, the parent will not emit an updated event." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy; &kcy;&acy;&kcy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &vcy;&ycy;&dcy;&acy;&scy;&tcy; &ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;, &ocy;&ncy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&scy;&tcy; &vcy;&scy;&iecy; &scy;&vcy;&ocy;&icy; &dcy;&iecy;&scy;&kcy;&rcy;&icy;&pcy;&tcy;&ocy;&rcy;&ycy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&mcy;&ucy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ucy; &icy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&tcy;&softcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &kcy;&acy;&kcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&jcy; &dcy;&iecy;&mcy;&ocy;&ncy;. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &vcy; &kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ocy;&mcy; &icy;&tcy;&ocy;&gcy;&iecy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&tcy; &zcy;&acy;&gcy;&rcy;&ucy;&zcy;&kcy;&ucy;, &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy; &ncy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&iecy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy;.</span></p> <p><span data-i18n="090e2fb3d295241e090a03af960db5ae721ead135236e6ceb9d2148d58fb90bb/b9" data-source="Note that the &lt;code&gt;t_rel&lt;/code&gt; field contains the observed run time in seconds when the parent released the child process into the background. The child is assumed to be a long-running daemon process and may outlive the parent process. So the parent&amp;rsquo;s child event times should not be compared to the child&amp;rsquo;s atexit times." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &pcy;&ocy;&lcy;&iecy;  <code>t_rel</code>  &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &ncy;&acy;&bcy;&lcy;&yucy;&dcy;&acy;&iecy;&mcy;&ocy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&acy;&khcy;, &kcy;&ocy;&gcy;&dcy;&acy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &pcy;&iecy;&rcy;&iecy;&vcy;&iecy;&lcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &vcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy;. &Pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&acy;&gcy;&acy;&iecy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&shchcy;&icy;&mcy; &dcy;&iecy;&mcy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&mcy; &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&zhcy;&icy;&tcy;&softcy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;. &Tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &vcy;&rcy;&iecy;&mcy;&yacy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&ocy;&gcy;&ocy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&acy; &ncy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &scy;&rcy;&acy;&vcy;&ncy;&icy;&vcy;&acy;&tcy;&softcy; &scy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&iecy;&mcy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&acy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeexeccode"> <code>&quot;exec&quot;</code> </dt> <dd> <p><span data-i18n="22bdbc0f82c1431b94d3ea9aea9cebaaaba00bd9db764fbc4b5dc847ff015a16/c5" data-source="This event is generated before git attempts to &lt;code&gt;exec()&lt;/code&gt; another command rather than starting a child process." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy;  git  &pcy;&ocy;&pcy;&ycy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy;  <code>exec()</code>  &dcy;&rcy;&ucy;&gcy;&ucy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;exec&quot;</span>,
        ...
        <span class="hljs-string">&quot;exec_id&quot;</span>:0,
        <span class="hljs-string">&quot;exe&quot;</span>:<span class="hljs-string">&quot;git&quot;</span>,
        <span class="hljs-string">&quot;argv&quot;</span>:[<span class="hljs-string">&quot;foo&quot;</span>, <span class="hljs-string">&quot;bar&quot;</span>]
}</pre> </div> </div> <p><span data-i18n="0159118fe45a4d4140d7dd05169266ba13285293ac47d81d6bdcfd14837b1624/56" data-source="The &amp;quot;exec_id&amp;quot; field is a command-unique id and is only useful if the &lt;code&gt;exec()&lt;/code&gt; fails and a corresponding exec_result event is generated." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&iecy;  &quot;exec_id&quot;  &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &ucy;&ncy;&icy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &icy; &pcy;&ocy;&lcy;&iecy;&zcy;&ncy;&ocy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &scy;&bcy;&ocy;&yacy;  <code>exec()</code>  &icy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; exec_result.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codeexecresultcode"> <code>&quot;exec_result&quot;</code> </dt> <dd> <p><span data-i18n="2d1f0f7a01f7ac58708b67cae1ba8a320b915ab1308476111e68353f7dd4712d/75" data-source="This event is generated if the &lt;code&gt;exec()&lt;/code&gt; fails and control returns to the current git command." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy;  <code>exec()</code>  &vcy;&ycy;&khcy;&ocy;&dcy;&icy;&tcy; &icy;&zcy; &scy;&tcy;&rcy;&ocy;&yacy; &icy; &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy;&scy;&yacy; &kcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  git .</span></p> <div> <div> <pre class="hljs language-cpp">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;exec_result&quot;</span>,
        ...
        <span class="hljs-string">&quot;exec_id&quot;</span>:<span class="hljs-number">0</span>,
        <span class="hljs-string">&quot;code&quot;</span>:<span class="hljs-number">1</span>      <span class="hljs-meta"># <span class="hljs-keyword">error</span> code (errno) from exec()</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codethreadstartcode"> <code>&quot;thread_start&quot;</code> </dt> <dd> <p><span data-i18n="b41a2f2d7c4e84cd68e745e8c8cb3f2e000aa6e1703b75d939fce199d26e089d/f7" data-source="This event is generated when a thread is started. It is generated from &lt;strong&gt;within&lt;/strong&gt; the new thread&amp;rsquo;s thread-proc (because it needs to access data in the thread&amp;rsquo;s thread-local storage)." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;. &Ocy;&ncy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy; (&pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &iecy;&mcy;&ucy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &kcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy; &vcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&iecy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;).</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;thread_start&quot;</span>,
        ...
        <span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;th02:preload_thread&quot;</span> <span class="hljs-comment"># thread name</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codethreadexitcode"> <code>&quot;thread_exit&quot;</code> </dt> <dd> <p><span data-i18n="64d72dafcab1caf5f79e340c2db10843625652fe27f6ff6bcf2f37e65cf8fda5/55" data-source="This event is generated when a thread exits. It is generated from &lt;strong&gt;within&lt;/strong&gt; the thread&amp;rsquo;s thread-proc." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&ycy;&khcy;&ocy;&dcy;&iecy; &icy;&zcy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;. &Ocy;&ncy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;-proc.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;thread_exit&quot;</span>,
        ...
        <span class="hljs-string">&quot;thread&quot;</span>:<span class="hljs-string">&quot;th02:preload_thread&quot;</span>, <span class="hljs-comment" title="# thread name"># &icy;&mcy;&yacy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;</span>
        <span class="hljs-string">&quot;t_rel&quot;</span>:0.007328                <span class="hljs-comment" title="# thread elapsed time"># &pcy;&rcy;&ocy;&shcy;&iecy;&dcy;&shcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codedefparamcode"> <code>&quot;def_param&quot;</code> </dt> <dd> <p><span data-i18n="ddd4d2cdd75477f4919a861216ec6b2a4298f15cb4be8b1cde9cb2802656a5ca/2c" data-source="This event is generated to log a global parameter, such as a config setting, command-line flag, or environment variable." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;&tscy;&icy;&icy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;, &tcy;&acy;&kcy;&ocy;&gcy;&ocy; &kcy;&acy;&kcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &fcy;&lcy;&acy;&gcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &icy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; &scy;&rcy;&iecy;&dcy;&ycy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;def_param&quot;</span>,
        ...
        <span class="hljs-string">&quot;scope&quot;</span>:<span class="hljs-string">&quot;global&quot;</span>,
        <span class="hljs-string">&quot;param&quot;</span>:<span class="hljs-string">&quot;core.abbrev&quot;</span>,
        <span class="hljs-string">&quot;value&quot;</span>:<span class="hljs-string">&quot;7&quot;</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codedefrepocode"> <code>&quot;def_repo&quot;</code> </dt> <dd> <p><span data-i18n="66c2be5c430cb2776062395ced97d41467c0f6197fb8593cd782ad70403816fc/88" data-source="This event defines a repo-id and associates it with the root of the worktree." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &rcy;&iecy;&pcy;&ocy; &icy; &scy;&vcy;&yacy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &iecy;&gcy;&ocy; &scy; &kcy;&ocy;&rcy;&ncy;&iecy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;def_repo&quot;</span>,
        ...
        <span class="hljs-string">&quot;repo&quot;</span>:1,
        <span class="hljs-string">&quot;worktree&quot;</span>:<span class="hljs-string">&quot;/Users/jeffhost/work/gfw&quot;</span>
}</pre> </div> </div> <p><span data-i18n="cba4564dd7d2e8377f798ac4c6b5593e54df3b32dd752690c4027f7536147779/eb" data-source="As stated earlier, the repo-id is currently always 1, so there will only be one def_repo event. Later, if in-proc submodules are supported, a def_repo event should be emitted for each submodule visited." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &gcy;&ocy;&vcy;&ocy;&rcy;&icy;&lcy;&ocy;&scy;&softcy; &rcy;&acy;&ncy;&iecy;&iecy;, &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &rcy;&iecy;&pcy;&ocy; &vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &rcy;&acy;&vcy;&iecy;&ncy; 1, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &bcy;&ucy;&dcy;&iecy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&dcy;&ncy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; def_repo. &Pcy;&ocy;&zcy;&zhcy;&iecy;, &iecy;&scy;&lcy;&icy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&icy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;, &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; def_repo &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&scy;&iecy;&shchcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&dcy;&mcy;&ocy;&dcy;&ucy;&lcy;&yacy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-coderegionentercode"> <code>&quot;region_enter&quot;</code> </dt> <dd> <p><span data-i18n="ee6ff19d2e1da7163f8ea0b83b9c27f67b87ba24170f212cbb7bf4c8d6e65fde/3c" data-source="This event is generated when entering a region." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&khcy;&ocy;&dcy;&iecy; &vcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;region_enter&quot;</span>,
        ...
        <span class="hljs-string">&quot;repo&quot;</span>:1,                <span class="hljs-comment"># optional</span>
        <span class="hljs-string">&quot;nesting&quot;</span>:1,             <span class="hljs-comment" title="# current region stack depth"># &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&acy; &scy;&tcy;&iecy;&kcy;&acy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&acy;</span>
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;index&quot;</span>,      <span class="hljs-comment"># optional</span>
        <span class="hljs-string">&quot;label&quot;</span>:<span class="hljs-string">&quot;do_read_index&quot;</span>, <span class="hljs-comment"># optional</span>
        <span class="hljs-string">&quot;msg&quot;</span>:<span class="hljs-string">&quot;.git/index&quot;</span>       <span class="hljs-comment"># optional</span>
}</pre> </div> </div> <p><span data-i18n="fcebbf668d641ff8e52df82d4a4f24879ef4198fd7493f2863bbaa280aa330b5/24" data-source="The &lt;code&gt;category&lt;/code&gt; field may be used in a future enhancement to do category-based filtering." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&iecy;  <code>category</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&icy;&khcy; &ucy;&lcy;&ucy;&chcy;&shcy;&iecy;&ncy;&icy;&yacy;&khcy; &dcy;&lcy;&yacy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&ocy; &kcy;&acy;&tcy;&iecy;&gcy;&ocy;&rcy;&icy;&yacy;&mcy;.</span></p> <p><span data-i18n="0d0cc12f90c6b51a3468ff82ed13796f7dc73a7bd1e6a8b088ac006cf735de4a/29" data-source="&lt;code&gt;GIT_TRACE2_EVENT_NESTING&lt;/code&gt; or &lt;code&gt;trace2.eventNesting&lt;/code&gt; can be used to filter deeply nested regions and data events. It defaults to &amp;quot;2&amp;quot;." onmousemove="i18n(this)"><code>GIT_TRACE2_EVENT_NESTING</code>  &icy;&lcy;&icy;  <code>trace2.eventNesting</code>  &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&acy;&tscy;&icy;&icy; &gcy;&lcy;&ucy;&bcy;&ocy;&kcy;&ocy; &vcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ycy;&khcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&ocy;&vcy; &icy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&jcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  &quot;2&quot; .</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-coderegionleavecode"> <code>&quot;region_leave&quot;</code> </dt> <dd> <p><span data-i18n="f714793d7ff2921ace3482c17a5ed6b5598aae029e2f91185162aad47bf48738/67" data-source="This event is generated when leaving a region." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&ycy;&khcy;&ocy;&dcy;&iecy; &icy;&zcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&acy;.</span></p> <div> <div> <pre class="hljs language-csharp">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;region_leave&quot;</span>,
        ...
        <span class="hljs-string">&quot;repo&quot;</span>:<span class="hljs-number">1</span>,                <span class="hljs-meta"># optional</span>
        <span class="hljs-string">&quot;t_rel&quot;</span>:<span class="hljs-number">0.002876</span>,        <span class="hljs-meta"># time spent in <span class="hljs-keyword">region</span> in seconds</span>
        <span class="hljs-string">&quot;nesting&quot;</span>:<span class="hljs-number">1</span>,             <span class="hljs-meta"># <span class="hljs-keyword">region</span> stack depth</span>
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;index&quot;</span>,      <span class="hljs-meta"># optional</span>
        <span class="hljs-string">&quot;label&quot;</span>:<span class="hljs-string">&quot;do_read_index&quot;</span>, <span class="hljs-meta"># optional</span>
        <span class="hljs-string">&quot;msg&quot;</span>:<span class="hljs-string">&quot;.git/index&quot;</span>       <span class="hljs-meta"># optional</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codedatacode"> <code>&quot;data&quot;</code> </dt> <dd> <p><span data-i18n="dbb2e7814e945c0d761fbe04acad383fd80679cc28e356877819c831ad4c93df/0f" data-source="This event is generated to log a thread- and region-local key/value pair." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&acy;&rcy;&ycy; &kcy;&lcy;&yucy;&chcy;/&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy; &icy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&acy;.</span></p> <div> <div> <pre class="hljs language-csharp">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;data&quot;</span>,
        ...
        <span class="hljs-string">&quot;repo&quot;</span>:<span class="hljs-number">1</span>,              <span class="hljs-meta"># optional</span>
        <span class="hljs-string">&quot;t_abs&quot;</span>:<span class="hljs-number">0.024107</span>,      <span class="hljs-meta"># absolute elapsed time</span>
        <span class="hljs-string">&quot;t_rel&quot;</span>:<span class="hljs-number">0.001031</span>,      <span class="hljs-meta"># elapsed time in <span class="hljs-keyword">region</span>/thread</span>
        <span class="hljs-string">&quot;nesting&quot;</span>:<span class="hljs-number">2</span>,           <span class="hljs-meta"># <span class="hljs-keyword">region</span> stack depth</span>
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;index&quot;</span>,
        <span class="hljs-string">&quot;key&quot;</span>:<span class="hljs-string">&quot;read/cache_nr&quot;</span>,
        <span class="hljs-string">&quot;value&quot;</span>:<span class="hljs-string">&quot;3552&quot;</span>
}</pre> </div> </div> <p><span data-i18n="4404c06dd351765b36b81d74d6c25deec15c11d83d776677d135dafb2621adac/59" data-source="The &amp;quot;value&amp;quot; field may be an integer or a string." onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&iecy;  &quot;value&quot;  &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &tscy;&iecy;&lcy;&ycy;&mcy; &chcy;&icy;&scy;&lcy;&ocy;&mcy; &icy;&lcy;&icy; &scy;&tcy;&rcy;&ocy;&kcy;&ocy;&jcy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-codedata-jsoncode"> <code>&quot;data-json&quot;</code> </dt> <dd> <p><span data-i18n="a002aa3109a2a1476091b45688007e183fcccd0e0a7cca92292b6c0f54675276/9c" data-source="This event is generated to log a pre-formatted JSON string containing structured data." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &ocy;&tcy;&fcy;&ocy;&rcy;&mcy;&acy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; JSON, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&jcy; &scy;&tcy;&rcy;&ucy;&kcy;&tcy;&ucy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;data_json&quot;</span>,
        ...
        <span class="hljs-string">&quot;repo&quot;</span>:1,              <span class="hljs-comment"># optional</span>
        <span class="hljs-string">&quot;t_abs&quot;</span>:0.015905,
        <span class="hljs-string">&quot;t_rel&quot;</span>:0.015905,
        <span class="hljs-string">&quot;nesting&quot;</span>:1,
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;process&quot;</span>,
        <span class="hljs-string">&quot;key&quot;</span>:<span class="hljs-string">&quot;windows/ancestry&quot;</span>,
        <span class="hljs-string">&quot;value&quot;</span>:[<span class="hljs-string">&quot;bash.exe&quot;</span>,<span class="hljs-string">&quot;bash.exe&quot;</span>]
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codethtimercode"> <code>&quot;th_timer&quot;</code> </dt> <dd> <p><span data-i18n="548792a75fa1c97d4e20d46e750e430787350475aa948bf78740b53e7323e100/fa" data-source="This event logs the amount of time that a stopwatch timer was running in the thread. This event is generated when a thread exits for timers that requested per-thread events." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &vcy;&rcy;&iecy;&mcy;&yacy;, &vcy; &tcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &vcy; &pcy;&ocy;&tcy;&ocy;&kcy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&lcy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ocy;&mcy;&iecy;&rcy;&acy;. &Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ocy;&vcy;, &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&yucy;&shchcy;&icy;&khcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;th_timer&quot;</span>,
        ...
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;my_category&quot;</span>,
        <span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;my_timer&quot;</span>,
        <span class="hljs-string">&quot;intervals&quot;</span>:5,         <span class="hljs-comment"># number of time it was started/stopped</span>
        <span class="hljs-string">&quot;t_total&quot;</span>:0.052741,    <span class="hljs-comment"># total time in seconds it was running</span>
        <span class="hljs-string">&quot;t_min&quot;</span>:0.010061,      <span class="hljs-comment"># shortest interval</span>
        <span class="hljs-string">&quot;t_max&quot;</span>:0.011648       <span class="hljs-comment"># longest interval</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codetimercode"> <code>&quot;timer&quot;</code> </dt> <dd> <p><span data-i18n="8db380d0bc09de941f95a6ff178428b2c3c4fa39da67134c6e2d480db7bbcd61/9d" data-source="This event logs the amount of time that a stopwatch timer was running aggregated across all threads. This event is generated when the process exits." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &vcy;&rcy;&iecy;&mcy;&yacy;, &vcy; &tcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&lcy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ocy;&mcy;&iecy;&rcy;&acy;, &acy;&gcy;&rcy;&iecy;&gcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&iecy; &pcy;&ocy; &vcy;&scy;&iecy;&mcy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;&mcy;. &Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&ycy;&khcy;&ocy;&dcy;&iecy; &icy;&zcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;timer&quot;</span>,
        ...
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;my_category&quot;</span>,
        <span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;my_timer&quot;</span>,
        <span class="hljs-string">&quot;intervals&quot;</span>:5,         <span class="hljs-comment" title="# number of time it was started/stopped"># &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &rcy;&acy;&zcy;, &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &bcy;&ycy;&lcy; &zcy;&acy;&pcy;&ucy;&shchcy;&iecy;&ncy;/&ocy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;</span>
        <span class="hljs-string">&quot;t_total&quot;</span>:0.052741,    <span class="hljs-comment" title="# total time in seconds it was running"># &ocy;&bcy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy; &vcy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&acy;&khcy;</span>
        <span class="hljs-string">&quot;t_min&quot;</span>:0.010061,      <span class="hljs-comment" title="# shortest interval"># &kcy;&rcy;&acy;&tcy;&chcy;&acy;&jcy;&shcy;&icy;&jcy; &icy;&ncy;&tcy;&iecy;&rcy;&vcy;&acy;&lcy;</span>
        <span class="hljs-string">&quot;t_max&quot;</span>:0.011648       <span class="hljs-comment" title="# longest interval"># &scy;&acy;&mcy;&ycy;&jcy; &dcy;&lcy;&icy;&ncy;&ncy;&ycy;&jcy; &icy;&ncy;&tcy;&iecy;&rcy;&vcy;&acy;&lcy;</span>
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codethcountercode"> <code>&quot;th_counter&quot;</code> </dt> <dd> <p><span data-i18n="bb1d651ce10b11fd5d579a05fd86d2b98a99956d82f45a5fe6a7a8d02b7263d8/3f" data-source="This event logs the value of a counter variable in a thread. This event is generated when a thread exits for counters that requested per-thread events." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy;-&scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy;&acy; &vcy; &pcy;&ocy;&tcy;&ocy;&kcy;&iecy;. &Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy; &scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy;&ocy;&vcy;, &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&yucy;&shchcy;&icy;&khcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;th_counter&quot;</span>,
        ...
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;my_category&quot;</span>,
        <span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;my_counter&quot;</span>,
        <span class="hljs-string">&quot;count&quot;</span>:23
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-codecountercode"> <code>&quot;counter&quot;</code> </dt> <dd> <p><span data-i18n="8558535d015300fcb2c889b824b2f607aac9f1eaf75b7391815f0764356ee51a/fa" data-source="This event logs the value of a counter variable across all threads. This event is generated when the process exits. The total value reported here is the sum across all threads." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy;&acy; &vcy;&ocy; &vcy;&scy;&iecy;&khcy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;&khcy;. &Ecy;&tcy;&ocy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&iecy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&ycy;&khcy;&ocy;&dcy;&iecy; &icy;&zcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;. &Ocy;&bcy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&iecy; &zcy;&dcy;&iecy;&scy;&softcy;, &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &scy;&ucy;&mcy;&mcy;&ucy; &pcy;&ocy; &vcy;&scy;&iecy;&mcy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;&mcy;.</span></p> <div> <div> <pre class="hljs language-bash">{
        <span class="hljs-string">&quot;event&quot;</span>:<span class="hljs-string">&quot;counter&quot;</span>,
        ...
        <span class="hljs-string">&quot;category&quot;</span>:<span class="hljs-string">&quot;my_category&quot;</span>,
        <span class="hljs-string">&quot;name&quot;</span>:<span class="hljs-string">&quot;my_counter&quot;</span>,
        <span class="hljs-string">&quot;count&quot;</span>:23
}</pre> </div> </div> </dd> </dl> </div> </div> </div> </div> <h2 class="text-body-emphasis"  id="_example_trace2_api_usage"><span data-i18n="b2ecae615787e026a954666f3ac47e2789112365a348278ca8808782bbe97b8b/0f" data-source="Example trace2 api usage" onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; API &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;2</span></h2> <div> <p><span data-i18n="12031ad12dbaa2c5af459d8289a9e78d83ecb2a63bb11889a9f3b9599b2d61f6/5b" data-source="Here is a hypothetical usage of the Trace2 API showing the intended usage (without worrying about the actual Git details)." onmousemove="i18n(this)">&Vcy;&ocy;&tcy; &gcy;&icy;&pcy;&ocy;&tcy;&iecy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; API Trace2, &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&iecy;&iecy; &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&acy;&gcy;&acy;&iecy;&mcy;&ocy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; (&ncy;&iecy; &bcy;&iecy;&scy;&pcy;&ocy;&kcy;&ocy;&yacy;&scy;&softcy; &ocy; &fcy;&acy;&kcy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&khcy; &dcy;&iecy;&tcy;&acy;&lcy;&yacy;&khcy;  Git ).</span></p> <div> <dl> <dt id="Documentation/technical/api-trace2.txt-Initialization"><span data-i18n="8be62fc3ae5ed455a48ac219fdc0faab6b7b39d0829aade3b46720908ad7ae7d/d1" data-source="Initialization" onmousemove="i18n(this)">Initialization</span></dt> <dd> <p><span data-i18n="2e3ebc704d11ede329d096fc4e045efad46d715bb7f82c8a51eb3cb1c8a413fc/5e" data-source="Initialization happens in &lt;code&gt;main()&lt;/code&gt;. Behind the scenes, an &lt;code&gt;atexit&lt;/code&gt; and &lt;code&gt;signal&lt;/code&gt; handler are registered." onmousemove="i18n(this)">&Icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yacy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&icy;&tcy; &vcy;  <code>main()</code> . &Zcy;&acy; &kcy;&ucy;&lcy;&icy;&scy;&acy;&mcy;&icy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&chcy;&icy;&kcy;&icy;  <code>atexit</code>  &icy;  <code>signal</code> .</span></p> <div> <div> <pre class="hljs language-cpp"><span class="hljs-function"><span class="hljs-type">int</span> <span class="hljs-title">main</span><span class="hljs-params">(<span class="hljs-type">int</span> argc, <span class="hljs-type">const</span> <span class="hljs-type">char</span> **argv)</span>
</span>{
        <span class="hljs-type">int</span> exit_code;

        <span class="hljs-built_in">trace2_initialize</span>();
        <span class="hljs-built_in">trace2_cmd_start</span>(argv);

        exit_code = <span class="hljs-built_in">cmd_main</span>(argc, argv);

        <span class="hljs-built_in">trace2_cmd_exit</span>(exit_code);

        <span class="hljs-keyword">return</span> exit_code;
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-CommandDetails"><span data-i18n="dfcb902e4d3617f4dbf9358861b892e5ce89eab0da1c7c80f4909e96194b0858/1a" data-source="Command Details" onmousemove="i18n(this)">Command Details</span></dt> <dd> <p><span data-i18n="cf1affdda8b2eb9a46171f8daebdf248550c9f4cc26a114c0cb8d12215c6c7d1/09" data-source="After the basics are established, additional command information can be sent to Trace2 as it is discovered." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy; &kcy;&acy;&kcy; &ocy;&scy;&ncy;&ocy;&vcy;&ycy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy;, &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&acy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy; &ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&khcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&vcy; Trace2 &pcy;&ocy; &mcy;&iecy;&rcy;&iecy; &iecy;&iecy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy;.</span></p> <div> <div> <pre class="hljs language-scss">int <span class="hljs-built_in">cmd_checkout</span>(int argc, const char **argv)
{
        <span class="hljs-built_in">trace2_cmd_name</span>(&quot;checkout&quot;);
        <span class="hljs-built_in">trace2_cmd_mode</span>(&quot;branch&quot;);
        <span class="hljs-built_in">trace2_def_repo</span>(the_repository);

        <span class="hljs-comment" title="// emit &quot;def_param&quot; messages for &quot;interesting&quot; config settings.">// &vcy;&ycy;&dcy;&acy;&iecy;&mcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;  &quot;def_param&quot;  &dcy;&lcy;&yacy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&kcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  &quot;interesting&quot; .</span>
        <span class="hljs-built_in">trace2_cmd_list_config</span>();

        if (do_something())
            <span class="hljs-built_in">trace2_cmd_error</span>(&quot;Path &apos;%s&apos;: cannot do something&quot;, path);

        return <span class="hljs-number">0</span>;
}</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-ChildProcesses"><span data-i18n="c1125a8187c80b9ea5b4394f6bc2a44a91699a0389eeba4b7655827dfac059db/b7" data-source="Child Processes" onmousemove="i18n(this)">Child Processes</span></dt> <dd> <p><span data-i18n="16641896949dfd4d078c7054dcf03a13f9540907fca2a64e9d8724c6fe7b9a29/f2" data-source="Wrap code spawning child processes." onmousemove="i18n(this)">&Ocy;&bcy;&iecy;&rcy;&ncy;&icy;&tcy;&iecy; &kcy;&ocy;&dcy;, &pcy;&ocy;&rcy;&ocy;&zhcy;&dcy;&acy;&yucy;&shchcy;&icy;&jcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ycy;.</span></p> <div> <div> <pre class="hljs language-cpp"><span class="hljs-function"><span class="hljs-type">void</span> <span class="hljs-title">run_child</span><span class="hljs-params">(...)</span>
</span>{
        <span class="hljs-type">int</span> child_exit_code;
        <span class="hljs-keyword">struct</span> <span class="hljs-title class_">child_process</span> cmd = CHILD_PROCESS_INIT;
        ...
        cmd.trace2_child_class = <span class="hljs-string">&quot;editor&quot;</span>;

        <span class="hljs-built_in">trace2_child_start</span>(&amp;cmd);
        child_exit_code = <span class="hljs-built_in">spawn_child_and_wait_for_it</span>();
        <span class="hljs-built_in">trace2_child_exit</span>(&amp;cmd, child_exit_code);
}</pre> </div> </div> <p><span data-i18n="dc33785cf8bef5f85ef3c96dc35ba4cc4a04065fce83f56da2d5eb351ab80f5f/2f" data-source="For example, the following fetch command spawned ssh, index-pack, rev-list, and gc. This example also shows that fetch took 5.199 seconds and of that 4.932 was in ssh." onmousemove="i18n(this)">&Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&acy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; fetch &pcy;&ocy;&rcy;&ocy;&dcy;&icy;&lcy;&acy; ssh, index-pack, rev-list &icy; gc. &Ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&acy; &zcy;&acy;&ncy;&yacy;&lcy;&acy; 5,199 &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ycy;, &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; 4,932 &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ycy; &pcy;&rcy;&icy;&shcy;&lcy;&ocy;&scy;&softcy; &ncy;&acy; ssh.</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2_BRIEF=1</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2=~/log.normal</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git fetch origin</span>
...</pre> </div> </div> <div> <div> <pre class="hljs language-python-repl">$ cat ~/log.normal
version 2.20.1.vfs.1.1.47.g534dbe1ad1
start git fetch origin
worktree /Users/jeffhost/work/gfw
cmd_name fetch (fetch)
child_start[0] ssh <a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="04636d7044636d706c71662a676b69">[email&#160;protected]</a> ...
child_start[1] git index-pack ...
<span class="hljs-meta prompt_">...</span> <span class="language-python">(Trace2 events <span class="hljs-keyword">from</span> child processes omitted)</span>
child_exit[1] pid:14707 code:0 elapsed:0.076353
child_exit[0] pid:14706 code:0 elapsed:4.931869
child_start[2] git rev-list ...
<span class="hljs-meta prompt_">...</span> <span class="language-python">(Trace2 events <span class="hljs-keyword">from</span> child process omitted)</span>
child_exit[2] pid:14708 code:0 elapsed:0.110605
child_start[3] git gc --auto
<span class="hljs-meta prompt_">...</span> <span class="language-python">(Trace2 events <span class="hljs-keyword">from</span> child process omitted)</span>
child_exit[3] pid:14709 code:0 elapsed:0.006240
exit elapsed:5.198503 code:0
atexit elapsed:5.198541 code:0</pre> </div> </div> <p><span data-i18n="9cbcf04e0e471faaddb9a221a0fdcbe8dd5b88dd092e8aa4f2370bc4c67783c5/65" data-source="When a git process is a (direct or indirect) child of another git process, it inherits Trace2 context information. This allows the child to print the command hierarchy. This example shows gc as child[3] of fetch. When the gc process reports its name as &amp;quot;gc&amp;quot;, it also reports the hierarchy as &amp;quot;fetch/gc&amp;quot;. (In this example, trace2 messages from the child process is indented for clarity.)" onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;  git  &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; (&pcy;&rcy;&yacy;&mcy;&ycy;&mcy; &icy;&lcy;&icy; &kcy;&ocy;&scy;&vcy;&iecy;&ncy;&ncy;&ycy;&mcy;) &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&mcy; &dcy;&rcy;&ucy;&gcy;&ocy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;  git , &ocy;&ncy; &ncy;&acy;&scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; Trace2. &Ecy;&tcy;&ocy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &rcy;&iecy;&bcy;&iecy;&ncy;&kcy;&ucy; &rcy;&acy;&scy;&pcy;&iecy;&chcy;&acy;&tcy;&acy;&tcy;&softcy; &icy;&iecy;&rcy;&acy;&rcy;&khcy;&icy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;. &Vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; gc &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy; &kcy;&acy;&kcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&icy;&jcy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy; [3] &mcy;&iecy;&tcy;&ocy;&dcy;&acy; fetch. &Kcy;&ocy;&gcy;&dcy;&acy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; gc &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&tcy; &scy;&vcy;&ocy;&iecy; &icy;&mcy;&yacy; &kcy;&acy;&kcy;  &quot;gc&quot; , &ocy;&ncy; &tcy;&acy;&kcy;&zhcy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&tcy; &icy;&iecy;&rcy;&acy;&rcy;&khcy;&icy;&yucy; &kcy;&acy;&kcy;  &quot;fetch/gc&quot; . (&Vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;2 &ocy;&tcy; &dcy;&ocy;&chcy;&iecy;&rcy;&ncy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &icy;&mcy;&iecy;&yucy;&tcy; &ocy;&tcy;&scy;&tcy;&ucy;&pcy; &dcy;&lcy;&yacy; &yacy;&scy;&ncy;&ocy;&scy;&tcy;&icy;.)</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2_BRIEF=1</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2=~/log.normal</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">git fetch origin</span>
...</pre> </div> </div> <div> <div> <pre class="hljs language-bash">$ <span class="hljs-built_in">cat</span> ~/log.normal
version 2.20.1.160.g5676107ecd.dirty
start git fetch official
worktree /Users/jeffhost/work/gfw
cmd_name fetch (fetch)
...
child_start[3] git gc --auto
    version 2.20.1.160.g5676107ecd.dirty
    start /Users/jeffhost/work/gfw/git gc --auto
    worktree /Users/jeffhost/work/gfw
    cmd_name gc (fetch/gc)
    <span class="hljs-built_in">exit</span> elapsed:0.001959 code:0
    atexit elapsed:0.001997 code:0
child_exit[3] pid:20303 code:0 elapsed:0.007564
<span class="hljs-built_in">exit</span> elapsed:3.868938 code:0
atexit elapsed:3.868970 code:0</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-Regions"><span data-i18n="610c65d84510bef5d54a2dbbb0db7272ecde19fb7ee52307ec6a6d6094695004/7f" data-source="Regions" onmousemove="i18n(this)">Regions</span></dt> <dd> <p><span data-i18n="01250488661ad05fd797ec5bc6c980cab394a0a5840ad12cb5c4a87bc38cb718/16" data-source="Regions can be used to time an interesting section of code." onmousemove="i18n(this)">&Rcy;&iecy;&gcy;&icy;&ocy;&ncy;&ycy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &icy;&ncy;&tcy;&iecy;&rcy;&iecy;&scy;&ncy;&ocy;&gcy;&ocy; &ucy;&chcy;&acy;&scy;&tcy;&kcy;&acy; &kcy;&ocy;&dcy;&acy;.</span></p> <div> <div> <pre class="hljs language-rust">void <span class="hljs-title function_ invoke__">wt_status_collect</span>(<span class="hljs-keyword">struct</span> <span class="hljs-title class_">wt_status</span> *s)
{
        <span class="hljs-title function_ invoke__">trace2_region_enter</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;worktrees&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);
        <span class="hljs-title function_ invoke__">wt_status_collect_changes_worktree</span>(s);
        <span class="hljs-title function_ invoke__">trace2_region_leave</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;worktrees&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);

        <span class="hljs-title function_ invoke__">trace2_region_enter</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;index&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);
        <span class="hljs-title function_ invoke__">wt_status_collect_changes_index</span>(s);
        <span class="hljs-title function_ invoke__">trace2_region_leave</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;index&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);

        <span class="hljs-title function_ invoke__">trace2_region_enter</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;untracked&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);
        <span class="hljs-title function_ invoke__">wt_status_collect_untracked</span>(s);
        <span class="hljs-title function_ invoke__">trace2_region_leave</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;untracked&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);
}

void <span class="hljs-title function_ invoke__">wt_status_print</span>(<span class="hljs-keyword">struct</span> <span class="hljs-title class_">wt_status</span> *s)
{
        <span class="hljs-title function_ invoke__">trace2_region_enter</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;print&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);
        <span class="hljs-title function_ invoke__">switch</span> (s<span class="hljs-punctuation">-&gt;</span>status_format) {
            ...
        }
        <span class="hljs-title function_ invoke__">trace2_region_leave</span>(<span class="hljs-string">&quot;status&quot;</span>, <span class="hljs-string">&quot;print&quot;</span>, s<span class="hljs-punctuation">-&gt;</span>repo);
}</pre> </div> </div> <p><span data-i18n="c5809d37e6470896b9814089864e8f28089e7f6289fd776c386d47e0fcf98a10/20" data-source="In this example, scanning for untracked files ran from +0.012568 to +0.027149 (since the process started) and took 0.014581 seconds." onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &scy;&kcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &dcy;&lcy;&icy;&lcy;&ocy;&scy;&softcy; &ocy;&tcy; +0,012568 &dcy;&ocy; +0,027149 (&scy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;) &icy; &zcy;&acy;&ncy;&icy;&mcy;&acy;&lcy;&ocy; 0,014581 &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ycy;.</span></p> <div> <div> <pre class="hljs language-lua">$ export GIT_TRACE2_PERF_BRIEF=<span class="hljs-number">1</span>
$ export GIT_TRACE2_PERF=~/<span class="hljs-built_in">log</span>.perf
$ git <span class="hljs-built_in">status</span>
...

$ cat ~/<span class="hljs-built_in">log</span>.perf
d0 | main                     | version      |     |           |           |            | <span class="hljs-number">2.20</span><span class="hljs-number">.1</span><span class="hljs-number">.160</span>.g5676107ecd.dirty
d0 | main                     | start        |     |  <span class="hljs-number">0.001173</span> |           |            | git <span class="hljs-built_in">status</span>
d0 | main                     | def_repo     | r1  |           |           |            | worktree:/Users/jeffhost/work/gfw
d0 | main                     | cmd_name     |     |           |           |            | <span class="hljs-built_in">status</span> (<span class="hljs-built_in">status</span>)
...
d0 | main                     | region_enter | r1  |  <span class="hljs-number">0.010988</span> |           | <span class="hljs-built_in">status</span>     | label:worktrees
d0 | main                     | region_leave | r1  |  <span class="hljs-number">0.011236</span> |  <span class="hljs-number">0.000248</span> | <span class="hljs-built_in">status</span>     | label:worktrees
d0 | main                     | region_enter | r1  |  <span class="hljs-number">0.011260</span> |           | <span class="hljs-built_in">status</span>     | label:index
d0 | main                     | region_leave | r1  |  <span class="hljs-number">0.012542</span> |  <span class="hljs-number">0.001282</span> | <span class="hljs-built_in">status</span>     | label:index
d0 | main                     | region_enter | r1  |  <span class="hljs-number">0.012568</span> |           | <span class="hljs-built_in">status</span>     | label:untracked
d0 | main                     | region_leave | r1  |  <span class="hljs-number">0.027149</span> |  <span class="hljs-number">0.014581</span> | <span class="hljs-built_in">status</span>     | label:untracked
d0 | main                     | region_enter | r1  |  <span class="hljs-number">0.027411</span> |           | <span class="hljs-built_in">status</span>     | label:<span class="hljs-built_in">print</span>
d0 | main                     | region_leave | r1  |  <span class="hljs-number">0.028741</span> |  <span class="hljs-number">0.001330</span> | <span class="hljs-built_in">status</span>     | label:<span class="hljs-built_in">print</span>
d0 | main                     | <span class="hljs-built_in">exit</span>         |     |  <span class="hljs-number">0.028778</span> |           |            | code:<span class="hljs-number">0</span>
d0 | main                     | atexit       |     |  <span class="hljs-number">0.028809</span> |           |            | code:<span class="hljs-number">0</span></pre> </div> </div> <p><span data-i18n="4784138ab6b875032ed5f82d5ccb556c2043db58328389c9c59696dc2fd4be58/08" data-source="Regions may be nested. This causes messages to be indented in the PERF target, for example. Elapsed times are relative to the start of the corresponding nesting level as expected. For example, if we add region message to:" onmousemove="i18n(this)">&Rcy;&iecy;&gcy;&icy;&ocy;&ncy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &vcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy;. &Ecy;&tcy;&ocy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &kcy; &ocy;&tcy;&scy;&tcy;&ucy;&pcy;&acy;&mcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&jcy; &vcy; &tscy;&iecy;&lcy;&iecy;&vcy;&ocy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&iecy; PERF. &Pcy;&rcy;&ocy;&shcy;&iecy;&dcy;&shcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&scy;&yacy; &kcy; &ncy;&acy;&chcy;&acy;&lcy;&ucy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&gcy;&ocy; &ucy;&rcy;&ocy;&vcy;&ncy;&yacy; &vcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ocy;&scy;&tcy;&icy;, &kcy;&acy;&kcy; &icy; &ocy;&zhcy;&icy;&dcy;&acy;&lcy;&ocy;&scy;&softcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &mcy;&ycy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&mcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&acy; &vcy;:</span></p> <div> <div> <pre class="hljs language-csharp"><span class="hljs-function"><span class="hljs-keyword">static</span> <span class="hljs-built_in">enum</span> path_treatment <span class="hljs-title">read_directory_recursive</span>(<span class="hljs-params"><span class="hljs-keyword">struct</span> dir_struct *dir,
        <span class="hljs-keyword">struct</span> index_state *istate, <span class="hljs-keyword">const</span> <span class="hljs-built_in">char</span> *<span class="hljs-keyword">base</span>, <span class="hljs-built_in">int</span> baselen,
        <span class="hljs-keyword">struct</span> untracked_cache_dir *untracked, <span class="hljs-built_in">int</span> check_only,
        <span class="hljs-built_in">int</span> stop_at_first_file, <span class="hljs-keyword">const</span> <span class="hljs-keyword">struct</span> pathspec *pathspec</span>)</span>
{
        <span class="hljs-built_in">enum</span> path_treatment state, subdir_state, dir_state = path_none;

        trace2_region_enter_printf(<span class="hljs-string">&quot;dir&quot;</span>, <span class="hljs-string">&quot;read_recursive&quot;</span>, NULL, <span class="hljs-string">&quot;%.*s&quot;</span>, baselen, <span class="hljs-keyword">base</span>);
        ...
        trace2_region_leave_printf(<span class="hljs-string">&quot;dir&quot;</span>, <span class="hljs-string">&quot;read_recursive&quot;</span>, NULL, <span class="hljs-string">&quot;%.*s&quot;</span>, baselen, <span class="hljs-keyword">base</span>);
        <span class="hljs-keyword">return</span> dir_state;
}</pre> </div> </div> <p><span data-i18n="03f5e68415932148eee9b14dfbb5c3d57ab2deaaad36c514349c68f22272633d/25" data-source="We can further investigate the time spent scanning for untracked files." onmousemove="i18n(this)">&Mcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&mcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &icy;&zcy;&ucy;&chcy;&icy;&tcy;&softcy; &vcy;&rcy;&iecy;&mcy;&yacy;, &pcy;&ocy;&tcy;&rcy;&acy;&chcy;&iecy;&ncy;&ncy;&ocy;&iecy; &ncy;&acy; &scy;&kcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> <div> <div> <pre class="hljs language-bash">$ <span class="hljs-built_in">export</span> GIT_TRACE2_PERF_BRIEF=1
$ <span class="hljs-built_in">export</span> GIT_TRACE2_PERF=~/log.perf
$ git status
...
$ <span class="hljs-built_in">cat</span> ~/log.perf
d0 | main                     | version      |     |           |           |            | 2.20.1.162.gb4ccea44db.dirty
d0 | main                     | start        |     |  0.001173 |           |            | git status
d0 | main                     | def_repo     | r1  |           |           |            | worktree:/Users/jeffhost/work/gfw
d0 | main                     | cmd_name     |     |           |           |            | status (status)
...
d0 | main                     | region_enter | r1  |  0.015047 |           | status     | label:untracked
d0 | main                     | region_enter |     |  0.015132 |           | <span class="hljs-built_in">dir</span>        | ..label:read_recursive
d0 | main                     | region_enter |     |  0.016341 |           | <span class="hljs-built_in">dir</span>        | ....label:read_recursive vcs-svn/
d0 | main                     | region_leave |     |  0.016422 |  0.000081 | <span class="hljs-built_in">dir</span>        | ....label:read_recursive vcs-svn/
d0 | main                     | region_enter |     |  0.016446 |           | <span class="hljs-built_in">dir</span>        | ....label:read_recursive xdiff/
d0 | main                     | region_leave |     |  0.016522 |  0.000076 | <span class="hljs-built_in">dir</span>        | ....label:read_recursive xdiff/
d0 | main                     | region_enter |     |  0.016612 |           | <span class="hljs-built_in">dir</span>        | ....label:read_recursive git-gui/
d0 | main                     | region_enter |     |  0.016698 |           | <span class="hljs-built_in">dir</span>        | ......label:read_recursive git-gui/po/
d0 | main                     | region_enter |     |  0.016810 |           | <span class="hljs-built_in">dir</span>        | ........label:read_recursive git-gui/po/glossary/
d0 | main                     | region_leave |     |  0.016863 |  0.000053 | <span class="hljs-built_in">dir</span>        | ........label:read_recursive git-gui/po/glossary/
...
d0 | main                     | region_enter |     |  0.031876 |           | <span class="hljs-built_in">dir</span>        | ....label:read_recursive <span class="hljs-built_in">builtin</span>/
d0 | main                     | region_leave |     |  0.032270 |  0.000394 | <span class="hljs-built_in">dir</span>        | ....label:read_recursive <span class="hljs-built_in">builtin</span>/
d0 | main                     | region_leave |     |  0.032414 |  0.017282 | <span class="hljs-built_in">dir</span>        | ..label:read_recursive
d0 | main                     | region_leave | r1  |  0.032454 |  0.017407 | status     | label:untracked
...
d0 | main                     | <span class="hljs-built_in">exit</span>         |     |  0.034279 |           |            | code:0
d0 | main                     | atexit       |     |  0.034322 |           |            | code:0</pre> </div> </div> <p><span data-i18n="9144732ead60d6a5e4a71fd8eac9190243a58ad633ee1c07bcd49a6fd5756d2d/81" data-source="Trace2 regions are similar to the existing trace_performance_enter() and trace_performance_leave() routines, but are thread safe and maintain per-thread stacks of timers." onmousemove="i18n(this)">&Rcy;&iecy;&gcy;&icy;&ocy;&ncy;&ycy; Trace2 &acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ycy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&dcy;&ucy;&rcy;&acy;&mcy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;_ Performance_enter() &icy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;_&pcy;&iecy;&rcy;&fcy;&ocy;&rcy;&mcy;&acy;&ncy;&scy;_leave(), &ncy;&ocy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ycy;&mcy;&icy; &icy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy; &scy;&tcy;&iecy;&kcy;&icy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ocy;&vcy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-DataMessages"><span data-i18n="eaa306aa795ec6547fcae5a2fc25074478893700d503f70f4a787aa79acc5769/c1" data-source="Data Messages" onmousemove="i18n(this)">Data Messages</span></dt> <dd> <p><span data-i18n="2c0d51a559b3b9245d5be191860d99e59987e38847a68ba37a5ffdf24cb985c0/86" data-source="Data messages added to a region." onmousemove="i18n(this)">&Scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &scy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;&icy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &vcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;.</span></p> <div> <div> <pre class="hljs language-cpp"><span class="hljs-function"><span class="hljs-type">int</span> <span class="hljs-title">read_index_from</span><span class="hljs-params">(<span class="hljs-keyword">struct</span> index_state *istate, <span class="hljs-type">const</span> <span class="hljs-type">char</span> *path,
        <span class="hljs-type">const</span> <span class="hljs-type">char</span> *gitdir)</span>
</span>{
        <span class="hljs-built_in">trace2_region_enter_printf</span>(<span class="hljs-string">&quot;index&quot;</span>, <span class="hljs-string">&quot;do_read_index&quot;</span>, the_repository, <span class="hljs-string">&quot;%s&quot;</span>, path);

        ...

        <span class="hljs-built_in">trace2_data_intmax</span>(<span class="hljs-string">&quot;index&quot;</span>, the_repository, <span class="hljs-string">&quot;read/version&quot;</span>, istate-&gt;version);
        <span class="hljs-built_in">trace2_data_intmax</span>(<span class="hljs-string">&quot;index&quot;</span>, the_repository, <span class="hljs-string">&quot;read/cache_nr&quot;</span>, istate-&gt;cache_nr);

        <span class="hljs-built_in">trace2_region_leave_printf</span>(<span class="hljs-string">&quot;index&quot;</span>, <span class="hljs-string">&quot;do_read_index&quot;</span>, the_repository, <span class="hljs-string">&quot;%s&quot;</span>, path);
}</pre> </div> </div> <p><span data-i18n="df29fe1b93d4595270f67469d005ef62266dc95e14ada8b5897e29d8c4d3f91c/cb" data-source="This example shows that the index contained 3552 entries." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&lcy; 3552 &zcy;&acy;&pcy;&icy;&scy;&icy;.</span></p> <div> <div> <pre class="hljs language-bash">$ <span class="hljs-built_in">export</span> GIT_TRACE2_PERF_BRIEF=1
$ <span class="hljs-built_in">export</span> GIT_TRACE2_PERF=~/log.perf
$ git status
...
$ <span class="hljs-built_in">cat</span> ~/log.perf
d0 | main                     | version      |     |           |           |            | 2.20.1.156.gf9916ae094.dirty
d0 | main                     | start        |     |  0.001173 |           |            | git status
d0 | main                     | def_repo     | r1  |           |           |            | worktree:/Users/jeffhost/work/gfw
d0 | main                     | cmd_name     |     |           |           |            | status (status)
d0 | main                     | region_enter | r1  |  0.001791 |           | index      | label:do_read_index .git/index
d0 | main                     | data         | r1  |  0.002494 |  0.000703 | index      | ..<span class="hljs-built_in">read</span>/version:2
d0 | main                     | data         | r1  |  0.002520 |  0.000729 | index      | ..<span class="hljs-built_in">read</span>/cache_nr:3552
d0 | main                     | region_leave | r1  |  0.002539 |  0.000748 | index      | label:do_read_index .git/index
...</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-ThreadEvents"><span data-i18n="245d630393c9dd103ebd52943af99f9cd43689efd90650e986bf699e450a8753/2b" data-source="Thread Events" onmousemove="i18n(this)">Thread Events</span></dt> <dd> <p><span data-i18n="d5ee0264b86e941e19abbda18b29aecbdba2893476b8e252338e4aaf2b9a4453/13" data-source="Thread messages added to a thread-proc." onmousemove="i18n(this)">&Scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;, &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy; &pcy;&ocy;&tcy;&ocy;&kcy;-proc.</span></p> <p><span data-i18n="24bbc0d3e3a3046a75baec54ff76b309aa3c2b644dc8de822de2399501b03b34/40" data-source="For example, the multi-threaded preload-index code can be instrumented with a region around the thread pool and then per-thread start and exit events within the thread-proc." onmousemove="i18n(this)">&Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &mcy;&ncy;&ocy;&gcy;&ocy;&pcy;&ocy;&tcy;&ocy;&chcy;&ncy;&ycy;&jcy; &kcy;&ocy;&dcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &zcy;&acy;&gcy;&rcy;&ucy;&zcy;&kcy;&icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&scy;&ncy;&acy;&shchcy;&iecy;&ncy; &ocy;&bcy;&lcy;&acy;&scy;&tcy;&softcy;&yucy; &vcy;&ocy;&kcy;&rcy;&ucy;&gcy; &pcy;&ucy;&lcy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&vcy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;&mcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &icy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy; &vcy;&ncy;&ucy;&tcy;&rcy;&icy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> <div> <div> <pre class="hljs language-cpp"><span class="hljs-function"><span class="hljs-type">static</span> <span class="hljs-type">void</span> *<span class="hljs-title">preload_thread</span><span class="hljs-params">(<span class="hljs-type">void</span> *_data)</span>
</span>{
        <span class="hljs-comment" title="// start the per-thread clock and emit a message.">// &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&mcy; &chcy;&acy;&scy;&ycy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy; &icy; &vcy;&ycy;&dcy;&acy;&iecy;&mcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;.</span>
        <span class="hljs-built_in">trace2_thread_start</span>(<span class="hljs-string">&quot;preload_thread&quot;</span>);

        <span class="hljs-comment" title="// report which chunk of the array this thread was assigned.">// &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&mcy;, &kcy;&acy;&kcy;&ocy;&jcy; &kcy;&ucy;&scy;&ocy;&kcy; &mcy;&acy;&scy;&scy;&icy;&vcy;&acy; &bcy;&ycy;&lcy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &ecy;&tcy;&ocy;&mcy;&ucy; &pcy;&ocy;&tcy;&ocy;&kcy;&ucy;.</span>
        <span class="hljs-built_in">trace2_data_intmax</span>(<span class="hljs-string">&quot;index&quot;</span>, the_repository, <span class="hljs-string">&quot;offset&quot;</span>, p-&gt;offset);
        <span class="hljs-built_in">trace2_data_intmax</span>(<span class="hljs-string">&quot;index&quot;</span>, the_repository, <span class="hljs-string">&quot;count&quot;</span>, nr);

        <span class="hljs-keyword">do</span> {
            ...
        } <span class="hljs-keyword">while</span> (--nr &gt; <span class="hljs-number">0</span>);
        ...

        <span class="hljs-comment" title="// report elapsed time taken by this thread.">// &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&iecy;&mcy; &ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy;, &zcy;&acy;&tcy;&rcy;&acy;&chcy;&iecy;&ncy;&ncy;&ocy;&mcy; &ecy;&tcy;&icy;&mcy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&mcy;.</span>
        <span class="hljs-built_in">trace2_thread_exit</span>();
        <span class="hljs-keyword">return</span> <span class="hljs-literal">NULL</span>;
}

<span class="hljs-function"><span class="hljs-type">void</span> <span class="hljs-title">preload_index</span><span class="hljs-params">(<span class="hljs-keyword">struct</span> index_state *index,
        <span class="hljs-type">const</span> <span class="hljs-keyword">struct</span> pathspec *pathspec,
        <span class="hljs-type">unsigned</span> <span class="hljs-type">int</span> refresh_flags)</span>
</span>{
        <span class="hljs-built_in">trace2_region_enter</span>(<span class="hljs-string">&quot;index&quot;</span>, <span class="hljs-string">&quot;preload&quot;</span>, the_repository);

        <span class="hljs-keyword">for</span> (i = <span class="hljs-number">0</span>; i &lt; threads; i++) {
            ... <span class="hljs-comment" title="/* create thread */">/* &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &tcy;&iecy;&mcy;&ucy; */</span>
        }

        <span class="hljs-keyword">for</span> (i = <span class="hljs-number">0</span>; i &lt; threads; i++) {
            ... <span class="hljs-comment" title="/* join thread */">/* &pcy;&rcy;&icy;&scy;&ocy;&iecy;&dcy;&icy;&ncy;&yacy;&iecy;&mcy;&scy;&yacy; &kcy; &tcy;&iecy;&mcy;&iecy; */</span>
        }

        <span class="hljs-built_in">trace2_region_leave</span>(<span class="hljs-string">&quot;index&quot;</span>, <span class="hljs-string">&quot;preload&quot;</span>, the_repository);
}</pre> </div> </div> <p><span data-i18n="974bace3b0d5f6fb940f83de19357b7d17713afde4ea62ff82c3f07926291574/98" data-source="In this example preload_index() was executed by the &lt;code&gt;main&lt;/code&gt; thread and started the &lt;code&gt;preload&lt;/code&gt; region. Seven threads, named &lt;code&gt;th01:preload_thread&lt;/code&gt; through &lt;code&gt;th07:preload_thread&lt;/code&gt;, were started. Events from each thread are atomically appended to the shared target stream as they occur so they may appear in random order with respect other threads. Finally, the main thread waits for the threads to finish and leaves the region." onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; preload_index() &bcy;&ycy;&lcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&mcy;  <code>main</code>  &icy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&lcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;  <code>preload</code> . &Bcy;&ycy;&lcy;&ocy; &zcy;&acy;&pcy;&ucy;&shchcy;&iecy;&ncy;&ocy; &scy;&iecy;&mcy;&softcy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&vcy; &scy; &icy;&mcy;&iecy;&ncy;&acy;&mcy;&icy; &ocy;&tcy;  <code>th01:preload_thread</code>  &dcy;&ocy;  <code>th07:preload_thread</code> . &Scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &icy;&zcy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy; &acy;&tcy;&ocy;&mcy;&acy;&rcy;&ncy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy; &ocy;&bcy;&shchcy;&icy;&jcy; &tscy;&iecy;&lcy;&iecy;&vcy;&ocy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &pcy;&ocy; &mcy;&iecy;&rcy;&iecy; &icy;&khcy; &vcy;&ocy;&zcy;&ncy;&icy;&kcy;&ncy;&ocy;&vcy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &ocy;&ncy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy; &vcy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;&ncy;&ocy;&mcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&vcy;. &Ncy;&acy;&kcy;&ocy;&ncy;&iecy;&tscy;, &ocy;&scy;&ncy;&ocy;&vcy;&ncy;&ocy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &zhcy;&dcy;&iecy;&tcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&vcy; &icy; &pcy;&ocy;&kcy;&icy;&dcy;&acy;&iecy;&tcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;.</span></p> <p><span data-i18n="db77eae714864c06c1ea2afc053fc2f58fbdce9c123a82c8edd6c304c0cc0b5b/36" data-source="Data events are tagged with the active thread name. They are used to report the per-thread parameters." onmousemove="i18n(this)">&Scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&ocy;&mcy;&iecy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &acy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;. &Ocy;&ncy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> <div> <div> <pre class="hljs language-wasm">$ <span class="hljs-keyword">export</span> GIT_TRACE2_PERF_BRIEF=<span class="hljs-number">1</span>
$ <span class="hljs-keyword">export</span> GIT_TRACE2_PERF=~/log.perf
$ git status
...
$ cat ~/log.perf
...
d0 | main                     | region_enter | r1  |  <span class="hljs-number">0.002595</span> |           | index      | label:preload
d0 | th01:preload_thread      | thread_start |     |  <span class="hljs-number">0.002699</span> |           |            |
d0 | th02:preload_thread      | thread_start |     |  <span class="hljs-number">0.002721</span> |           |            |
d0 | th01:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002736</span> |  <span class="hljs-number">0.000037</span> | index      | <span class="hljs-keyword">offset</span>:<span class="hljs-number">0</span>
d0 | th02:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002751</span> |  <span class="hljs-number">0.000030</span> | index      | <span class="hljs-keyword">offset</span>:<span class="hljs-number">2032</span>
d0 | th03:preload_thread      | thread_start |     |  <span class="hljs-number">0.002711</span> |           |            |
d0 | th06:preload_thread      | thread_start |     |  <span class="hljs-number">0.002739</span> |           |            |
d0 | th01:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002766</span> |  <span class="hljs-number">0.000067</span> | index      | count:<span class="hljs-number">508</span>
d0 | th06:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002856</span> |  <span class="hljs-number">0.000117</span> | index      | <span class="hljs-keyword">offset</span>:<span class="hljs-number">2540</span>
d0 | th03:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002824</span> |  <span class="hljs-number">0.000113</span> | index      | <span class="hljs-keyword">offset</span>:<span class="hljs-number">1016</span>
d0 | th04:preload_thread      | thread_start |     |  <span class="hljs-number">0.002710</span> |           |            |
d0 | th02:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002779</span> |  <span class="hljs-number">0.000058</span> | index      | count:<span class="hljs-number">508</span>
d0 | th06:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002966</span> |  <span class="hljs-number">0.000227</span> | index      | count:<span class="hljs-number">508</span>
d0 | th07:preload_thread      | thread_start |     |  <span class="hljs-number">0.002741</span> |           |            |
d0 | th07:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.003017</span> |  <span class="hljs-number">0.000276</span> | index      | <span class="hljs-keyword">offset</span>:<span class="hljs-number">3048</span>
d0 | th05:preload_thread      | thread_start |     |  <span class="hljs-number">0.002712</span> |           |            |
d0 | th05:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.003067</span> |  <span class="hljs-number">0.000355</span> | index      | <span class="hljs-keyword">offset</span>:<span class="hljs-number">1524</span>
d0 | th05:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.003090</span> |  <span class="hljs-number">0.000378</span> | index      | count:<span class="hljs-number">508</span>
d0 | th07:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.003037</span> |  <span class="hljs-number">0.000296</span> | index      | count:<span class="hljs-number">504</span>
d0 | th03:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002971</span> |  <span class="hljs-number">0.000260</span> | index      | count:<span class="hljs-number">508</span>
d0 | th04:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.002983</span> |  <span class="hljs-number">0.000273</span> | index      | <span class="hljs-keyword">offset</span>:<span class="hljs-number">508</span>
d0 | th04:preload_thread      | <span class="hljs-keyword">data</span>         | r1  |  <span class="hljs-number">0.007311</span> |  <span class="hljs-number">0.004601</span> | index      | count:<span class="hljs-number">508</span>
d0 | th05:preload_thread      | thread_exit  |     |  <span class="hljs-number">0.008781</span> |  <span class="hljs-number">0.006069</span> |            |
d0 | th01:preload_thread      | thread_exit  |     |  <span class="hljs-number">0.009561</span> |  <span class="hljs-number">0.006862</span> |            |
d0 | th03:preload_thread      | thread_exit  |     |  <span class="hljs-number">0.009742</span> |  <span class="hljs-number">0.007031</span> |            |
d0 | th06:preload_thread      | thread_exit  |     |  <span class="hljs-number">0.009820</span> |  <span class="hljs-number">0.007081</span> |            |
d0 | th02:preload_thread      | thread_exit  |     |  <span class="hljs-number">0.010274</span> |  <span class="hljs-number">0.007553</span> |            |
d0 | th07:preload_thread      | thread_exit  |     |  <span class="hljs-number">0.010477</span> |  <span class="hljs-number">0.007736</span> |            |
d0 | th04:preload_thread      | thread_exit  |     |  <span class="hljs-number">0.011657</span> |  <span class="hljs-number">0.008947</span> |            |
d0 | main                     | region_leave | r1  |  <span class="hljs-number">0.011717</span> |  <span class="hljs-number">0.009122</span> | index      | label:preload
...
d0 | main                     | exit         |     |  <span class="hljs-number">0.029996</span> |           |            | code:<span class="hljs-number">0</span>
d0 | main                     | atexit       |     |  <span class="hljs-number">0.030027</span> |           |            | code:<span class="hljs-number">0</span></pre> </div> </div> <p><span data-i18n="10bde6f7081a917c31be410048a910f0c664dc287bf3d8f072805e7c7f3501fe/9f" data-source="In this example, the preload region took 0.009122 seconds. The 7 threads took between 0.006069 and 0.008947 seconds to work on their portion of the index. Thread &amp;quot;th01&amp;quot; worked on 508 items at offset 0. Thread &amp;quot;th02&amp;quot; worked on 508 items at offset 2032. Thread &amp;quot;th04&amp;quot; worked on 508 items at offset 508." onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &ocy;&bcy;&lcy;&acy;&scy;&tcy;&softcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &zcy;&acy;&gcy;&rcy;&ucy;&zcy;&kcy;&icy; &zcy;&acy;&ncy;&yacy;&lcy;&acy; 0,009122 &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ycy;. &Scy;&iecy;&mcy;&icy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;&mcy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&lcy;&ocy;&scy;&softcy; &ocy;&tcy; 0,006069 &dcy;&ocy; 0,008947 &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ycy; &dcy;&lcy;&yacy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy; &scy;&vcy;&ocy;&iecy;&jcy; &chcy;&acy;&scy;&tcy;&icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;. &Pcy;&ocy;&tcy;&ocy;&kcy;  &quot;th01&quot;  &rcy;&acy;&bcy;&ocy;&tcy;&acy;&lcy; &scy; 508 &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;&icy; &scy;&ocy; &scy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&iecy;&mcy; 0. &Pcy;&ocy;&tcy;&ocy;&kcy;  &quot;th02&quot;  &rcy;&acy;&bcy;&ocy;&tcy;&acy;&lcy; &scy; 508 &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;&icy; &scy;&ocy; &scy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&iecy;&mcy; 2032. &Pcy;&ocy;&tcy;&ocy;&kcy;  &quot;th04&quot;  &rcy;&acy;&bcy;&ocy;&tcy;&acy;&lcy; &scy; 508 &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&acy;&mcy;&icy; &scy;&ocy; &scy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&iecy;&mcy; 508.</span></p> <p><span data-i18n="d120d4222f228114fd3866389ba2625e90272a42aa05ce21a55488164abc666f/77" data-source="This example also shows that thread names are assigned in a racy manner as each thread starts." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy; &tcy;&acy;&kcy;&zhcy;&iecy; &pcy;&ocy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &icy;&mcy;&iecy;&ncy;&acy; &pcy;&ocy;&tcy;&ocy;&kcy;&ocy;&vcy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy; &pcy;&rcy;&ocy;&icy;&zcy;&vcy;&ocy;&lcy;&softcy;&ncy;&ocy;&jcy; &mcy;&acy;&ncy;&iecy;&rcy;&iecy; &pcy;&rcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&ocy;&kcy;&acy;.</span></p> </dd> <dt id="Documentation/technical/api-trace2.txt-ConfigdefparamEvents"><span data-i18n="0675f0c7653ea4168180e9908cdba11b583b0d6e10c0ad570973fabc0fd60611/8a" data-source="Config (def param) Events" onmousemove="i18n(this)">&Kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yacy; (&pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy;) &Scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy;</span></dt> <dd> <p><span data-i18n="1788ca8061cd9888805ddb84645202973124e8daf0352f1a54349bff3afbca9d/36" data-source="Dump &amp;quot;interesting&amp;quot; config values to trace2 log." onmousemove="i18n(this)">&Scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  &quot;interesting&quot;  &vcy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy; &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;2.</span></p> <p><span data-i18n="2975c9ded5ccafe773e57862779b3b27ee0aa134bbb72b10d102ff98f84b469f/bd" data-source="We can optionally emit configuration events, see &lt;code&gt;trace2.configparams&lt;/code&gt; in &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt; for how to enable it." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &zhcy;&iecy;&lcy;&acy;&ncy;&icy;&icy; &mcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&mcy; &gcy;&iecy;&ncy;&iecy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &scy;&mcy;.  <code>trace2.configparams</code>  &vcy;  <a href="git-config.html">git-config[1]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy; &ecy;&tcy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy;.</span></p> <div> <div> <pre class="hljs language-lua">$ git <span class="hljs-built_in">config</span> <span class="hljs-comment" title="--system color.ui never">--system color.ui &ncy;&icy;&kcy;&ocy;&gcy;&dcy;&acy;</span>
$ git <span class="hljs-built_in">config</span> <span class="hljs-comment" title="--global color.ui always">--global color.ui &vcy;&scy;&iecy;&gcy;&dcy;&acy;</span>
$ git <span class="hljs-built_in">config</span> <span class="hljs-comment" title="--local color.ui auto">--local color.ui &acy;&vcy;&tcy;&ocy;</span>
$ git <span class="hljs-built_in">config</span> <span class="hljs-comment" title="--list --show-scope | grep &apos;color.ui&apos;">--list --show-scope | grep &apos;color.ui&apos;</span>
system  color.ui=never
global  color.ui=always
<span class="hljs-keyword">local</span>   color.ui=auto</pre> </div> </div> <p><span data-i18n="7d88b0ec15fac2372ab664025c5baa006dab349f5889c641d051a576d2b0a92f/1f" data-source="Then, mark the config &lt;code&gt;color.ui&lt;/code&gt; as &amp;quot;interesting&amp;quot; config with &lt;code&gt;GIT_TRACE2_CONFIG_PARAMS&lt;/code&gt;:" onmousemove="i18n(this)">&Zcy;&acy;&tcy;&iecy;&mcy; &ocy;&tcy;&mcy;&iecy;&tcy;&softcy;&tcy;&iecy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yucy;  <code>color.ui</code>  &kcy;&acy;&kcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yucy;  &quot;interesting&quot;  &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>GIT_TRACE2_CONFIG_PARAMS</code> :</span></p> <div> <div> <pre class="hljs language-bash">$ <span class="hljs-built_in">export</span> GIT_TRACE2_PERF_BRIEF=1
$ <span class="hljs-built_in">export</span> GIT_TRACE2_PERF=~/log.perf
$ <span class="hljs-built_in">export</span> GIT_TRACE2_CONFIG_PARAMS=color.ui
$ git version
...
$ <span class="hljs-built_in">cat</span> ~/log.perf
d0 | main                     | version      |     |           |           |              | ...
d0 | main                     | start        |     |  0.001642 |           |              | /usr/local/bin/git version
d0 | main                     | cmd_name     |     |           |           |              | version (version)
d0 | main                     | def_param    |     |           |           | scope:system | color.ui:never
d0 | main                     | def_param    |     |           |           | scope:global | color.ui:always
d0 | main                     | def_param    |     |           |           | scope:<span class="hljs-built_in">local</span>  | color.ui:auto
d0 | main                     | data         | r0  |  0.002100 |  0.002100 | fsync        | fsync/writeout-only:0
d0 | main                     | data         | r0  |  0.002126 |  0.002126 | fsync        | fsync/hardware-flush:0
d0 | main                     | <span class="hljs-built_in">exit</span>         |     |  0.000470 |           |              | code:0
d0 | main                     | atexit       |     |  0.000477 |           |              | code:0</pre> </div> </div> </dd> <dt id="Documentation/technical/api-trace2.txt-StopwatchTimerEvents"><span data-i18n="dda710eb93fda54bc6613bcffe7c7cd14f9f6dba5852182594c6a5ea01daff30/ba" data-source="Stopwatch Timer Events" onmousemove="i18n(this)">&Scy;&ocy;&bcy;&ycy;&tcy;&icy;&yacy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&acy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy;&ocy;&mcy;&iecy;&rcy;&acy;</span></dt> <dd> <p><span data-i18n="7964ebff3bf1f342d1c6c8c71787735cfd1488c5ae769726f9a2d38ba157169c/2f" data-source="Measure the time spent in a function call or span of code that might be called from many places within the code throughout the life of the process." onmousemove="i18n(this)">&Icy;&zcy;&mcy;&iecy;&rcy;&softcy;&tcy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy;, &zcy;&acy;&tcy;&rcy;&acy;&chcy;&icy;&vcy;&acy;&iecy;&mcy;&ocy;&iecy; &ncy;&acy; &vcy;&ycy;&zcy;&ocy;&vcy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &icy;&lcy;&icy; &fcy;&rcy;&acy;&gcy;&mcy;&iecy;&ncy;&tcy;&acy; &kcy;&ocy;&dcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &vcy;&ycy;&zcy;&vcy;&acy;&ncy; &icy;&zcy; &mcy;&ncy;&ocy;&gcy;&icy;&khcy; &mcy;&iecy;&scy;&tcy; &kcy;&ocy;&dcy;&acy; &ncy;&acy; &pcy;&rcy;&ocy;&tcy;&yacy;&zhcy;&iecy;&ncy;&icy;&icy; &vcy;&scy;&iecy;&gcy;&ocy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;.</span></p> <div> <div> <pre class="hljs language-scss">static void <span class="hljs-built_in">expensive_function</span>(void)
{
        <span class="hljs-built_in">trace2_timer_start</span>(TRACE2_TIMER_ID_TEST1);
        ...
        <span class="hljs-built_in">sleep_millisec</span>(<span class="hljs-number">1000</span>); <span class="hljs-comment" title="// Do something expensive">// &Dcy;&iecy;&lcy;&acy;&iecy;&mcy; &chcy;&tcy;&ocy;-&tcy;&ocy; &dcy;&ocy;&rcy;&ocy;&gcy;&ocy;&iecy;</span>
        ...
        <span class="hljs-built_in">trace2_timer_stop</span>(TRACE2_TIMER_ID_TEST1);
}

static int <span class="hljs-built_in">ut_100timer</span>(int argc, const char **argv)
{
        ...

        <span class="hljs-built_in">expensive_function</span>();

        <span class="hljs-comment" title="// Do something else 1...">// &Dcy;&iecy;&lcy;&acy;&iecy;&mcy; &chcy;&tcy;&ocy;-&ncy;&icy;&bcy;&ucy;&dcy;&softcy; &iecy;&shchcy;&iecy; 1...</span>

        <span class="hljs-built_in">expensive_function</span>();

        <span class="hljs-comment" title="// Do something else 2...">// &Dcy;&iecy;&lcy;&acy;&iecy;&mcy; &chcy;&tcy;&ocy;-&ncy;&icy;&bcy;&ucy;&dcy;&softcy; &iecy;&shchcy;&iecy; 2...</span>

        <span class="hljs-built_in">expensive_function</span>();

        return <span class="hljs-number">0</span>;
}</pre> </div> </div> <p><span data-i18n="39145bef61382ef1dac1a42b1a26f9c11e02e822a142945e24f647a2948818cc/2f" data-source="In this example, we measure the total time spent in &lt;code&gt;expensive_function()&lt;/code&gt; regardless of when it is called in the overall flow of the program." onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &mcy;&ycy; &icy;&zcy;&mcy;&iecy;&rcy;&yacy;&iecy;&mcy; &ocy;&bcy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy;, &zcy;&acy;&tcy;&rcy;&acy;&chcy;&iecy;&ncy;&ncy;&ocy;&iecy; &ncy;&acy;  <code>expensive_function()</code> , &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &ocy;&bcy;&shchcy;&iecy;&mcy; &pcy;&ocy;&tcy;&ocy;&kcy;&iecy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&ycy;.</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2_PERF_BRIEF=1</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">export</span> GIT_TRACE2_PERF=~/log.perf</span>
<span class="hljs-meta prompt_">$ </span><span class="language-bash">t/helper/test-tool trace2 100timer 3 1000</span>
...
<span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">cat</span> ~/log.perf</span>
d0 | main                     | version      |     |           |           |              | ...
d0 | main                     | start        |     |  0.001453 |           |              | t/helper/test-tool trace2 100timer 3 1000
d0 | main                     | cmd_name     |     |           |           |              | trace2 (trace2)
d0 | main                     | exit         |     |  3.003667 |           |              | code:0
d0 | main                     | timer        |     |           |           | test         | name:test1 intervals:3 total:3.001686 min:1.000254 max:1.000929
d0 | main                     | atexit       |     |  3.003796 |           |              | code:0</pre> </div> </div> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_future_work"><span data-i18n="31cf6469c5cc06b5801d31278e8a1ed327686098ebd0414c526c7be8327c36f5/61" data-source="Future work" onmousemove="i18n(this)">Future work</span></h2> <div> <div> <h3 class="text-body-emphasis"  id="_relationship_to_the_existing_trace_api_api_trace_txt"><span data-i18n="6e7cb73335c04765ed1eae5d8becbcc6c3661dd590661d0d4f3575fed5569f55/b4" data-source="Relationship to the Existing Trace Api (api-trace.txt)" onmousemove="i18n(this)">&Scy;&vcy;&yacy;&zcy;&softcy; &scy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; API &tcy;&rcy;&acy;&scy;&scy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; (api-trace.txt)</span></h3> <p><span data-i18n="64646a2feffeb170cbf0a877391e46bcf618147fd1cc8625aac33f1955aad94e/da" data-source="There are a few issues to resolve before we can completely switch to Trace2." onmousemove="i18n(this)">&Pcy;&rcy;&iecy;&zhcy;&dcy;&iecy; &chcy;&iecy;&mcy; &mcy;&ycy; &scy;&mcy;&ocy;&zhcy;&iecy;&mcy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&jcy;&tcy;&icy; &ncy;&acy; Trace2, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &rcy;&iecy;&shcy;&icy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&rcy;&ocy;&bcy;&lcy;&iecy;&mcy;.</span></p> <div> <ul> <li> <p><span data-i18n="5a701dfe0012fc3557703ac3e6de81559cdb913fe394d777fc29a887406c845a/9c" data-source="Updating existing tests that assume &lt;code&gt;GIT_TRACE&lt;/code&gt; format messages." onmousemove="i18n(this)">&Ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &tcy;&iecy;&scy;&tcy;&ocy;&vcy;, &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&acy;&gcy;&acy;&yucy;&shchcy;&icy;&khcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;  <code>GIT_TRACE</code> .</span></p> </li> <li> <p><span data-i18n="eff16e70ae3b04859957c8e376089aa0c22d034312bd011a80593676be5848c6/8a" data-source="How to best handle custom &lt;code&gt;GIT_TRACE_&amp;lt;key&amp;gt;&lt;/code&gt; messages?" onmousemove="i18n(this)">&Kcy;&acy;&kcy; &lcy;&ucy;&chcy;&shcy;&iecy; &vcy;&scy;&iecy;&gcy;&ocy; &ocy;&bcy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&tcy;&softcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;  <code>GIT_TRACE_&lt;key&gt;</code> ?</span></p> <div> <ul> <li> <p><span data-i18n="69e5f4493b82d044901d46d1c9ad4be81f85c370a8de54d3de14cb6d3ec96e09/a3" data-source="The &lt;code&gt;GIT_TRACE_&amp;lt;key&amp;gt;&lt;/code&gt; mechanism allows each &amp;lt;key&amp;gt; to write to a different file (in addition to just stderr)." onmousemove="i18n(this)">&Mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy;  <code>GIT_TRACE_&lt;key&gt;</code>  &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &kcy;&acy;&zhcy;&dcy;&ocy;&mcy;&ucy; &lt;&kcy;&lcy;&yucy;&chcy;&ucy;&gt; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&tcy;&softcy; &vcy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; (&pcy;&ocy;&mcy;&icy;&mcy;&ocy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; stderr).</span></p> </li> <li> <p><span data-i18n="ade82992d17cf03224c97ab0a5c40d61726f126950cc7c76595899d4c7a799c1/a5" data-source="Do we want to maintain that ability or simply write to the existing Trace2 targets (and convert &amp;lt;key&amp;gt; to a &amp;quot;category&amp;quot;)." onmousemove="i18n(this)">&KHcy;&ocy;&tcy;&icy;&mcy; &lcy;&icy; &mcy;&ycy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy; &ecy;&tcy;&ucy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &icy;&lcy;&icy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &zcy;&acy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &vcy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&iecy; &tscy;&iecy;&lcy;&icy; Trace2 (&icy; &pcy;&rcy;&iecy;&ocy;&bcy;&rcy;&acy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &lt;key&gt; &vcy;  &quot;category&quot; ).</span></p> </li> </ul> </div> </li> </ul> </div> </div> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/api-trace2">https://git-scm.com/docs/api-trace2</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script data-cfasync="false" src="../../../cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="bundle-uri.html">
                            bundle uri                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git.html">
                            git                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-add.html">
                            git add                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-am.html">
                            git am                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-annotate.html">
                            git annotate                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-apply.html">
                            git apply                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-archimport.html">
                            git archimport                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="api-trace2.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>